|
|
@@ -10,6 +10,7 @@ import 'package:zhiying_comm/util/log/let_log.dart'; |
|
|
|
import 'package:zhiying_comm/util/mob_util/secverify/quick_login_util.dart'; |
|
|
|
import 'package:zhiying_comm/util/net_util.dart'; |
|
|
|
import 'package:zhiying_comm/util/shared_prefe_util.dart'; |
|
|
|
import 'package:fluttertoast/fluttertoast.dart'; |
|
|
|
|
|
|
|
/// |
|
|
|
/// MOB SDK 工具类 |
|
|
@@ -82,11 +83,17 @@ class MobUtil { |
|
|
|
await Smssdk.getTextCode(phone, zoneCode, vCodeType, (ret, err) { |
|
|
|
if (err != null) { |
|
|
|
result = false; |
|
|
|
Logger.debug('get vcode fail err = ${err?.toString()}'); |
|
|
|
Logger.debug('get vcode fail err = ${err?.toString()}, ret = ${ret?.toString()}' ); |
|
|
|
if(!EmptyUtil.isEmpty(err)){ |
|
|
|
Fluttertoast.showToast(msg: '获取验证码失败:${err['msg']}'); |
|
|
|
}else { |
|
|
|
Fluttertoast.showToast(msg: '获取验证码失败~'); |
|
|
|
} |
|
|
|
|
|
|
|
} else { |
|
|
|
String rst = ret.toString(); |
|
|
|
if (rst == null || rst == "") { |
|
|
|
rst = '获取验证码成功! ret = ${ret?.toString()}'; |
|
|
|
rst = '获取验证码成功! ret = ${ret?.toString()}, err = ${err?.toString()} '; |
|
|
|
} |
|
|
|
Logger.debug(rst); |
|
|
|
result = true; |
|
|
|