From eb2b03ed1e04f1d9c544290c94b8fdac677e475e Mon Sep 17 00:00:00 2001 From: WinUser01 Date: Fri, 17 Dec 2021 20:52:46 +0800 Subject: [PATCH] =?UTF-8?q?hyzp=5Fybqx-Commit029=EF=BC=9A=E4=B8=B4?= =?UTF-8?q?=E6=97=B6=E8=A7=A3=E5=86=B3=E7=89=88=E6=9C=AC=E5=8D=87=E7=BA=A7?= =?UTF-8?q?=E9=97=AE=E9=A2=98=EF=BC=8C=E7=AD=89=E5=BE=85=E5=8C=BA=E5=8E=BF?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=8D=87=E7=BA=A7=E5=8A=9F=E8=83=BD=E5=AE=9E?= =?UTF-8?q?=E7=8E=B0=E5=90=8E=E6=81=A2=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/components/dioFun.dart | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/lib/components/dioFun.dart b/lib/components/dioFun.dart index 4235986..4fe3f96 100644 --- a/lib/components/dioFun.dart +++ b/lib/components/dioFun.dart @@ -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} 后端接口出现异常,请检测代码和服务器情况.........'); }