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

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, height: 200.rpx,
child: Center( child: Center(
child: CircularProgressIndicator( child: CircularProgressIndicator(
strokeWidth: 2,
color: themeController.currentColor.sc1, color: themeController.currentColor.sc1,
), ),
), ),

View File

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

View File

@@ -175,6 +175,9 @@ class LoginController extends GetControllerEx<LoginModel> {
if (AppConstants().ent_type == APPPackageType.DONGHUA.code) { if (AppConstants().ent_type == APPPackageType.DONGHUA.code) {
data['code'] = "dh"; data['code'] = "dh";
} }
if (AppConstants().ent_type == APPPackageType.TH.code) {
data['code'] = "theh";
}
var response = var response =
await EasyDartModule.dio.post(queryUrl, data: jsonEncode(data)); await EasyDartModule.dio.post(queryUrl, data: jsonEncode(data));
if (response != null) { if (response != null) {
@@ -248,6 +251,9 @@ class LoginController extends GetControllerEx<LoginModel> {
} }
if (AppConstants().ent_type == APPPackageType.DONGHUA.code) { if (AppConstants().ent_type == APPPackageType.DONGHUA.code) {
data['code'] = "dh"; data['code'] = "dh";
}
if (AppConstants().ent_type == APPPackageType.TH.code) {
data['code'] = "theh";
} }
var response = var response =
await EasyDartModule.dio.post(queryUrl, data: jsonEncode(data)); 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 serviceName = ServiceConstant.server_service;
String serviceApi = ServiceConstant.send_code; String serviceApi = ServiceConstant.send_code;
String queryUrl = "${serviceAddress}${serviceName}${serviceApi}"; String queryUrl = "${serviceAddress}${serviceName}${serviceApi}";
var data = {"userName": model.phone, "type": 2}; var data = {"userName": model.phone, "type": 2, "code": "mht"};
await requestWithLog( await requestWithLog(
logTitle: "忘记密码请求验证码", logTitle: "忘记密码请求验证码",
method: MyHttpMethod.post, method: MyHttpMethod.post,

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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