提交 afbf2e37 authored 作者: 祁增奎's avatar 祁增奎
......@@ -106,10 +106,12 @@ class CLXCodeManageLogic extends GetxController {
return;
}
final result = await getSmsVerificationCode?.call();
canSend = true;
if (result == true) {
handleCodeSendType();
_startCountdown();
} else {
canSend = true;
}
}
......@@ -123,7 +125,7 @@ class CLXCodeManageLogic extends GetxController {
return;
}
final result = await obtainVoiceVerificationCode?.call();
canSend = true;
if (result == true) {
handleCodeSendType(isSmsSend: false);
_startCountdown(isSmsSend: false);
......@@ -133,6 +135,8 @@ class CLXCodeManageLogic extends GetxController {
gravity: ToastGravity.CENTER,
timeInSecForIosWeb: 2,
);
} else {
canSend = true;
}
}
......
......@@ -4,13 +4,13 @@ version: 0.0.8
homepage:
environment:
sdk: '>=3.3.4 <4.0.0'
sdk: ">=3.3.4 <4.0.0"
flutter: ">=1.17.0"
dependencies:
flutter:
sdk: flutter
# 状态管理
get: ^4.3.7
# 吐司管理
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论