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

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

@@ -667,6 +667,7 @@ class _DynamicReportDetailWidgetState extends State<DynamicReportDetailWidget> {
height: 200.rpx,
child: Center(
child: CircularProgressIndicator(
strokeWidth: 2,
color: themeController.currentColor.sc1,
),
),

View File

@@ -229,7 +229,7 @@ class BlueteethBindController extends GetControllerEx<BlueteethBindModel> {
String serviceApi = ServiceConstant.device_bind;
String queryUrl = "$serviceAddress$serviceName$serviceApi";
String? language = "";
if (AppConstants().ent_type == APPPackageType.MHT.code) {
if (AppConstants().ent_type == APPPackageType.MHT.code) {
if (mhLanguageController.selectLanguage != null) {
language = mhLanguageController.selectLanguage.value!.language_code;
}
@@ -291,7 +291,7 @@ class BlueteethBindController extends GetControllerEx<BlueteethBindModel> {
String serviceApi = ServiceConstant.device_bind;
String queryUrl = "$serviceAddress$serviceName$serviceApi";
String? language = "";
if (AppConstants().ent_type == APPPackageType.MHT.code) {
if (AppConstants().ent_type == APPPackageType.MHT.code) {
if (mhLanguageController.selectLanguage != null) {
language = mhLanguageController.selectLanguage.value!.language_code;
}

View File

@@ -175,6 +175,9 @@ class LoginController extends GetControllerEx<LoginModel> {
if (AppConstants().ent_type == APPPackageType.DONGHUA.code) {
data['code'] = "dh";
}
if (AppConstants().ent_type == APPPackageType.TH.code) {
data['code'] = "theh";
}
var response =
await EasyDartModule.dio.post(queryUrl, data: jsonEncode(data));
if (response != null) {
@@ -248,6 +251,9 @@ class LoginController extends GetControllerEx<LoginModel> {
}
if (AppConstants().ent_type == APPPackageType.DONGHUA.code) {
data['code'] = "dh";
}
if (AppConstants().ent_type == APPPackageType.TH.code) {
data['code'] = "theh";
}
var response =
await EasyDartModule.dio.post(queryUrl, data: jsonEncode(data));

View File

@@ -50,7 +50,7 @@ class FindPasswordController extends GetControllerEx<FindPasswordModel> {
String serviceName = ServiceConstant.server_service;
String serviceApi = ServiceConstant.send_code;
String queryUrl = "${serviceAddress}${serviceName}${serviceApi}";
var data = {"userName": model.phone, "type": 2};
var data = {"userName": model.phone, "type": 2, "code": "mht"};
await requestWithLog(
logTitle: "忘记密码请求验证码",
method: MyHttpMethod.post,

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) {

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,
)),
),