提交 d6682b94 authored 作者: 祁增奎's avatar 祁增奎

连点问题修改

上级 4c2be86c
...@@ -100,10 +100,12 @@ class CLXCodeManageLogic extends GetxController { ...@@ -100,10 +100,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;
} }
} }
...@@ -117,7 +119,7 @@ class CLXCodeManageLogic extends GetxController { ...@@ -117,7 +119,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);
...@@ -127,6 +129,8 @@ class CLXCodeManageLogic extends GetxController { ...@@ -127,6 +129,8 @@ class CLXCodeManageLogic extends GetxController {
gravity: ToastGravity.CENTER, gravity: ToastGravity.CENTER,
timeInSecForIosWeb: 2, timeInSecForIosWeb: 2,
); );
} else {
canSend = true;
} }
} }
......
name: clx_verification_code name: clx_verification_code
description: "A new Flutter package project." description: "A new Flutter package project."
version: 0.0.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:
flutter: flutter:
sdk: flutter sdk: flutter
# 状态管理 # 状态管理
get: ^4.3.7 get: ^4.3.7
# 吐司管理 # 吐司管理
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论