修复眠花糖发送短信验证码失败。(未传客户端代码)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user