|
|
@ -40,13 +40,14 @@ object AppUpdate { |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
throw NoStackTraceException("已是最新版本") |
|
|
|
throw NoStackTraceException("已是最新版本") |
|
|
|
} |
|
|
|
} |
|
|
|
}.onSuccess { |
|
|
|
}.timeout(10000) |
|
|
|
callback.invoke(it[0], it[1], it[2], it[3]) |
|
|
|
.onSuccess { |
|
|
|
}.onError { |
|
|
|
callback.invoke(it[0], it[1], it[2], it[3]) |
|
|
|
if (showErrorMsg) { |
|
|
|
}.onError { |
|
|
|
appCtx.toastOnUi("检测更新\n${it.localizedMessage}") |
|
|
|
if (showErrorMsg) { |
|
|
|
|
|
|
|
appCtx.toastOnUi("检测更新\n${it.localizedMessage}") |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |