diff --git a/android/app/release/output.json b/android/app/release/output.json index 6063f44..940283b 100644 --- a/android/app/release/output.json +++ b/android/app/release/output.json @@ -1 +1 @@ -[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":20220531,"versionName":"1.5.2","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}] \ No newline at end of file +[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":20220620,"versionName":"1.5.3","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}] \ No newline at end of file diff --git a/lib/components/commonFun.dart b/lib/components/commonFun.dart index 96fc6cf..0326651 100644 --- a/lib/components/commonFun.dart +++ b/lib/components/commonFun.dart @@ -199,6 +199,7 @@ clear_user_info() { // 区县中心地址 center_latitude = -1; // 区县中心纬度 center_longitude = -1; // 区县中心经度 + userLogin = -1; //设置用户登录成功标志:1 成功,0 失败,-1 处理中 } // 511528、兴文县 @@ -320,6 +321,8 @@ Future sysPop() async { await SystemChannels.platform.invokeMethod('SystemNavigator.pop'); } +int userLogin = -1; //用户登录成功标志:1 成功,0 失败,-1 处理中 + //人脸注册和人脸识别登录成功标志 int faceReg = -1; //1 成功,0 失败,-1 处理中 int faceLogin = -1; //1 成功,0 失败,-1 处理中 diff --git a/lib/components/dioFun.dart b/lib/components/dioFun.dart index fe2edb3..89b74a6 100644 --- a/lib/components/dioFun.dart +++ b/lib/components/dioFun.dart @@ -2678,6 +2678,7 @@ Future faceLoginFun({@required String filePath, @required BuildContext context}) g_userInfo.setUserInfoFaceLogin(_mapGetData).then((value) { // 一套APP适应多个区县登录过程04、登录成功,开始使用保存的登录信息预加载数据,并设置faceLogin = 1 faceLogin = 1; //设置人脸验证成功标志。1 成功,0 失败,-1 处理中 + userLogin = 1; //设置用户登录成功标志:1 成功,0 失败,-1 处理中 startGetStatisDataNew(); // 2、登录前提前获取统计数据,改善用户登录体验 }); //获取其他用户信息 @@ -2695,6 +2696,7 @@ Future faceLoginFun({@required String filePath, @required BuildContext context}) }); } else { faceLogin = 0; //设置人脸验证成功标志。1 成功,0 失败,-1 处理中 + userLogin = 0; //设置用户登录成功标志:1 成功,0 失败,-1 处理中 print('人脸验证失败。'); Navigator.pushNamed(context, '/'); Fluttertoast.showToast( diff --git a/lib/pages/Login/LoginByName3.dart b/lib/pages/Login/LoginByName3.dart index af90f12..391f501 100644 --- a/lib/pages/Login/LoginByName3.dart +++ b/lib/pages/Login/LoginByName3.dart @@ -160,6 +160,7 @@ class _LoginPageState extends State { if (true == response.data["data"]["is_login"]) { print('登录成功'); print('response.data = ${response.data}'); + userLogin = 1; //设置用户登录成功标志:1 成功,0 失败,-1 处理中 // 一套APP适应多个区县登录过程02、进行登录验证,保存登录信息 if (bRemmberPW) { @@ -207,6 +208,7 @@ class _LoginPageState extends State { // Navigator.pushNamed(context, '/tabs', arguments: g_iIndex); } else { print('登录失败:${response.data["data"]}'); + userLogin = 0; //设置用户登录成功标志:1 成功,0 失败,-1 处理中 bLoginVerify = false; //处理延时登录,判断用户名登录是否验证通过 bPreLoading = false; try_setState(); // 登录失败后,刷新页面