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