更新短信第二次登录报错的问题
This commit is contained in:
@@ -21,16 +21,16 @@ class LoginModel {
|
||||
//版本id
|
||||
int? loginStyle = 1; //1.密码登录 2.短信登录(登录类型: 1:手机号/邮箱+验证码 2:微信一键登录 3:手机号+密码)
|
||||
|
||||
String? account = '17649984946'; //账户
|
||||
// String? account = '17649984946'; //账户
|
||||
// String? account = '13953240733'; //账户
|
||||
String? password = '123wyf..'; //密码
|
||||
// String? password = '123wyf..'; //密码
|
||||
// String? account = '15255134931'; //账户
|
||||
// String? password = 'mht123,.'; //密码
|
||||
|
||||
// String? account = '18607922869'; //账户
|
||||
// String? password = '373068'; //密码
|
||||
// String? account = ''; //账户
|
||||
// String? password = ''; //密码
|
||||
String? account = ''; //账户
|
||||
String? password = ''; //密码
|
||||
|
||||
String? phone; //手机号
|
||||
String? code; //验证码
|
||||
@@ -136,7 +136,7 @@ class MHTLoginController extends GetControllerEx<LoginModel> {
|
||||
}
|
||||
var data = {
|
||||
"type": type,
|
||||
"userName": model.account,
|
||||
"userName": account,
|
||||
"password": password,
|
||||
};
|
||||
String serviceAddress = ServiceConstant.service_address;
|
||||
@@ -173,13 +173,13 @@ class MHTLoginController extends GetControllerEx<LoginModel> {
|
||||
|
||||
Future<String> getCode(BuildContext context) async {
|
||||
String message = "";
|
||||
if (registerController.model.register_agree == null ||
|
||||
registerController.model.register_agree != true) {
|
||||
message = "需要同意协议".tr;
|
||||
TopSlideNotification.show(context,
|
||||
text: message, textColor: themeController.currentColor.sc9);
|
||||
return message;
|
||||
}
|
||||
// if (registerController.model.register_agree == null ||
|
||||
// registerController.model.register_agree != true) {
|
||||
// message = "需要同意协议".tr;
|
||||
// TopSlideNotification.show(context,
|
||||
// text: message, textColor: themeController.currentColor.sc9);
|
||||
// return message;
|
||||
// }
|
||||
if (model.phone == null || model.phone!.isEmpty) {
|
||||
message = "请输入手机号".tr;
|
||||
TopSlideNotification.show(context,
|
||||
|
||||
Reference in New Issue
Block a user