[6.2.8][应用升级] 代码逻辑优化
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user