@@ -451,7 +451,7 @@ const projectDepends = {
451451 androidGradlePlugin : 'https://developer.android.google.cn/studio/releases/gradle-plugin.html' ,
452452 kotlin : 'https://api.github.com/repos/JetBrains/kotlin/releases' ,
453453 kotlinKsp : 'https://api.github.com/repos/google/ksp/releases' ,
454- yukiHookApi : 'https://s01.oss.sonatype.org/content/repositories/releases/ com/highcapable/yukihookapi/api '
454+ yukiHookApi : 'https://api.github. com/repos/fankes/YukiHookAPI/releases '
455455 } ,
456456 /** 搜索项目依赖 */
457457 search ( ) {
@@ -571,16 +571,8 @@ const projectDepends = {
571571 findYukiHookApiVersion : ( ) => {
572572 httpClient . requestDepends ( 'YukiHookAPI' , projectDepends . urls . yukiHookApi , ( body ) => {
573573 dependenciesConfigs . yukiHookApiVersions = [ ] ;
574- $ ( body ) . find ( 'td' ) . each ( ( _ , element ) => {
575- if ( element . innerText . endsWith ( '/' ) && element . innerText . indexOf ( 'fix' ) < 0 )
576- dependenciesConfigs . yukiHookApiVersions . push ( element . innerText . replace ( '/' , '' ) . trim ( ) ) ;
577- } ) ;
578- if ( dependenciesConfigs . yukiHookApiVersions . length > 0 ) {
579- dependenciesConfigs . yukiHookApiVersions . sort ( ( a , b ) => {
580- return b . localeCompare ( a ) ;
581- } ) ;
582- const latestVersion = dependenciesConfigs . yukiHookApiVersions [ 0 ] ;
583- dependenciesConfigs . yukiHookApiVersions = [ ] ;
574+ const latestVersion = body . length > 0 ? body [ 0 ] [ 'tag_name' ] : '' ;
575+ if ( latestVersion !== '' ) {
584576 dependenciesConfigs . yukiHookApiVersions . push ( latestVersion ) ;
585577 projectDepends . loaded ( ) ;
586578 } else projectDepends . failure ( 'YukiHookAPI' , false ) ;
0 commit comments