修复眠花糖发送短信验证码失败。(未传客户端代码)

This commit is contained in:
wyf
2026-04-08 14:35:42 +08:00
parent c392cd8c90
commit 5e6406f7f2
13 changed files with 41 additions and 32 deletions

View File

@@ -151,7 +151,6 @@ class _HomePageState extends State<HomePage> {
),
),
SizedBox(height: 13.rpx),
],
),
),
@@ -586,23 +585,23 @@ class _HomePageState extends State<HomePage> {
borderRadius: AppConstants()
.button_container_radius, // 圆角半径
onTap: () {
// Get.toNamed("/qrView");
if (userInfoController.model.login ==
LoginStatus.LOGIN.code) {
// Get.toNamed("/deviceType");
TopSlideNotification.show(
context,
text: "待开发功能".tr,
);
} else {
TopSlideNotification.show(
context,
text: "必须登录提示".tr,
textColor: themeController
.currentColor.sc9,
);
Get.toNamed("/loginPage");
}
Get.toNamed("/qrView");
// if (userInfoController.model.login ==
// LoginStatus.LOGIN.code) {
// // Get.toNamed("/deviceType");
// TopSlideNotification.show(
// context,
// text: "待开发功能".tr,
// );
// } else {
// TopSlideNotification.show(
// context,
// text: "必须登录提示".tr,
// textColor: themeController
// .currentColor.sc9,
// );
// Get.toNamed("/loginPage");
// }
},
colors: [
// 渐变色
@@ -1043,6 +1042,7 @@ class _HomePageState extends State<HomePage> {
return Expanded(
child: Center(
child: CircularProgressIndicator(
strokeWidth: 2,
color: themeController.currentColor.sc1,
)),
// child: Column(

View File

@@ -537,8 +537,6 @@ class XiaoeController extends GetControllerEx<XiaoeModel> {
ef.log('开始运行小e Web应用...');
await web.runApp('xiaoe').then((x) {
ef.log('web.runApp 执行完成,结果: $x');
ready.value = true;
@@ -751,6 +749,7 @@ class XiaoeView extends GetComponent<XiaoeController> {
mainAxisSize: MainAxisSize.min,
children: [
CircularProgressIndicator(
strokeWidth: 2,
valueColor: AlwaysStoppedAnimation<Color>(
Colors.white),
),

View File

@@ -758,6 +758,7 @@ class WebviewTestView extends GetComponent<WebviewTestController> {
mainAxisSize: MainAxisSize.min,
children: [
CircularProgressIndicator(
strokeWidth: 2,
valueColor:
AlwaysStoppedAnimation<Color>(
Colors.white),

View File

@@ -117,7 +117,8 @@ class AuthBindTelController extends GetControllerEx<AuthBindTelModel> {
var data = {
"userName": model.phone!,
'type': 5,
"ccode":userInfoController.select_country_code.value,
"ccode": userInfoController.select_country_code.value,
"code": "mht"
};
if (img != null) {
if (img!['code'] != null) {
@@ -147,7 +148,7 @@ class AuthBindTelController extends GetControllerEx<AuthBindTelModel> {
Future<ApiResponse> updateUserPhone() async {
EasyDartModule.logger.info("更新用户资料");
DailyLogUtils.writeLog("更新用户资料");
try {
try {
ApiResponse apiResponse = ApiResponse(code: -1, msg: "保存失败".tr);
String serviceAddress = ServiceConstant.service_address;
String serviceName = ServiceConstant.server_service;
@@ -167,7 +168,7 @@ class AuthBindTelController extends GetControllerEx<AuthBindTelModel> {
final data = {
'phone': model.phone,
'verify': model.code,
'merge': true,
'merge': true,
};
var response =

View File

@@ -150,10 +150,7 @@ class MHTRegisterController extends GetControllerEx<RegisterModel> {
String serviceName = ServiceConstant.server_service;
String serviceApi = ServiceConstant.send_code;
String queryUrl = "${serviceAddress}${serviceName}${serviceApi}";
var data = {
"userName": model.register_phone!,
'type':4,
};
var data = {"userName": model.register_phone!, 'type': 4, "code": "mht"};
await requestWithLog(
logTitle: "获取验证码".tr,
method: MyHttpMethod.post,

View File

@@ -143,7 +143,7 @@ class UpdatePasswordController extends GetControllerEx<UpdatePasswordModel> {
String serviceName = ServiceConstant.server_service;
String serviceApi = ServiceConstant.send_code;
String queryUrl = "${serviceAddress}${serviceName}${serviceApi}";
var data = {"userName": model.phone, "type": 3};
var data = {"userName": model.phone, "type": 3, "code": "mht"};
await requestWithLog(
data: data,
logTitle: "发送验证码".tr,

View File

@@ -748,6 +748,7 @@ Widget _buildLoadingBottomSheet(
mainAxisSize: MainAxisSize.min,
children: [
CircularProgressIndicator(
strokeWidth: 2,
color: confirmTextColor,
),
SizedBox(height: 20.rpx),

View File

@@ -115,7 +115,9 @@ class _UserPrivacyNewPageState extends State<UserPrivacyNewPage> {
builder: (context, isLoading, child) {
return isLoading
? Center(
child: CircularProgressIndicator(), // 加载指示器
child: CircularProgressIndicator(
strokeWidth: 2,
), // 加载指示器
)
: SizedBox.shrink();
},

View File

@@ -161,6 +161,7 @@ class _QuickHealthReportPageState extends State<QuickHealthReportPage> {
top: true,
child: Center(
child: CircularProgressIndicator(
strokeWidth: 2,
color: themeController.currentColor.sc1,
)),
),