[6.2.8][应用升级] 代码逻辑优化

This commit is contained in:
renwj
2024-01-19 11:50:28 +08:00
parent 740ce6de05
commit ca866be272
3 changed files with 20 additions and 9 deletions

View File

@@ -55,12 +55,6 @@ class UpgradeAppNetWorkManager private constructor() {
fun getAppUpgradeInfo(context: Context?, mac: String, screenType: String) {
upgradeJob?.safeCancel()
scope.launch {
if (provider?.isDownloading() == true) {
withContext(Dispatchers.Main) {
ToastUtils.showShort("正在下载最新版本,不要重复下载...")
}
return@launch
}
val sn = SharedPrefsMgr.getInstance().sn
val macAddress = mac //"48:b0:2d:4d:31:7f"
val type = screenType //"10"