From 50f77c9f2395bb40fd26f25080f9c7923ca52d8b Mon Sep 17 00:00:00 2001 From: orz12 Date: Mon, 2 Sep 2024 00:29:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=89=8B=E6=9C=BA=E5=8F=B7=E9=AA=8C?= =?UTF-8?q?=E8=AF=81=E7=B1=BB=E5=9E=8B=E9=94=99=E8=AF=AF=EF=BC=88bool-Stri?= =?UTF-8?q?ng=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/login/controller.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/pages/login/controller.dart b/lib/pages/login/controller.dart index baef3255..2292b05a 100644 --- a/lib/pages/login/controller.dart +++ b/lib/pages/login/controller.dart @@ -317,11 +317,13 @@ class LoginPageController extends GetxController return; } Map accountInfo = { - "telVerify": safeCenterRes['data']['account_info']!['tel_verify'], "hindTel": safeCenterRes['data']['account_info']!["hide_tel"], - "mailVerify": safeCenterRes['data']['account_info']!['mailVerify'], "hindMail": safeCenterRes['data']['account_info']!["hide_mail"], }; + if (!safeCenterRes['data']['account_info']!['tel_verify']) { + SmartDialog.showToast("当前账号未支持手机号验证,请尝试其它登录方式"); + return; + } TextEditingController _textFieldController = TextEditingController(); String captchaKey = ''; Get.dialog(AlertDialog(