|
|
@@ -121,12 +121,11 @@ class AppUpdateUtil { |
|
|
|
// }, |
|
|
|
// "msg": "ok" |
|
|
|
// }; |
|
|
|
PackageInfo packageInfo = await PackageInfo.fromPlatform(); |
|
|
|
var result = await NetUtil.post('/api/v1/appcheck', method: NetMethod.GET); |
|
|
|
AppUpdateModel model = AppUpdateModel.fromJson(result[GlobalConfig.HTTP_RESPONSE_KEY_DATA]); |
|
|
|
if (!EmptyUtil.isEmpty(model)) { |
|
|
|
return UpdateEntity( |
|
|
|
hasUpdate: model?.dialog == '1' || model?.isForce == '1', |
|
|
|
hasUpdate: model?.dialog == '1', |
|
|
|
isIgnorable: model?.isIgnore == '1' && model?.isForce != '1', |
|
|
|
isForce: model?.isForce == '1', |
|
|
|
versionCode: int.parse(model?.appVersion ?? '1'), |
|
|
|