修改更新获取网址
This commit is contained in:
@@ -26,9 +26,9 @@ object AppUpdateGitHub : AppUpdate.AppUpdateInterface {
|
||||
|
||||
private suspend fun getLatestRelease(): List<AppReleaseInfo> {
|
||||
val lastReleaseUrl = if (checkVariant.isBeta()) {
|
||||
"https://api.github.com/repos/HapeLee/legado/releases/tags/beta"
|
||||
"https://api.github.com/repos/HapeLee/legado-with-MD3/releases/tags/beta"
|
||||
} else {
|
||||
"https://api.github.com/repos/HapeLee/legado/releases/latest"
|
||||
"https://api.github.com/repos/HapeLee/legado-with-MD3/releases/latest"
|
||||
}
|
||||
val res = okHttpClient.newCallResponse {
|
||||
url(lastReleaseUrl)
|
||||
|
||||
Reference in New Issue
Block a user