hyzp_ybqx-Commit029:临时解决版本升级问题,等待区县版本升级功能实现后恢复
This commit is contained in:
@@ -2200,7 +2200,18 @@ Future getNewverUrl() async {
|
||||
if (response.statusCode == 200) {
|
||||
print('${api} 网络请求过程正常完成');
|
||||
Map _mapDataRet = await getMapFromJson(response.data);
|
||||
_mapGetData = _mapDataRet['data'];
|
||||
// response = {"ret":200,"data":false,"msg":""}
|
||||
if (false == _mapDataRet['data']) {
|
||||
_mapGetData = {
|
||||
"id": 1,
|
||||
"ver": "1.3.12",
|
||||
"miaos": null,
|
||||
"downurl": "http://125.64.218.67:9909/downloads/hyzp_1.3.12+20210729.apk",
|
||||
"updatetime": 1627543123
|
||||
}; // 区县版本升级功能还未实现
|
||||
} else {
|
||||
_mapGetData = _mapDataRet['data'];
|
||||
}
|
||||
} else {
|
||||
throw Exception('${api} 后端接口出现异常,请检测代码和服务器情况.........');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user