多语言显示错误

This commit is contained in:
czz
2025-08-13 17:46:22 +08:00
parent 3dd2d1c59d
commit 5e9111ca41
11 changed files with 67 additions and 876 deletions

View File

@@ -80,9 +80,9 @@ class ApplyRepairController extends GetControllerEx<ApplyRepairModel> {
String serviceApi = ServiceConstant.upload_file;
String queryUrl = "${serviceAddress}${serviceName}${serviceApi}";
String? language = "";
if (mhLanguageController.selectLanguage != null) {
language = mhLanguageController.selectLanguage.value!.language_code;
}
if (mhLanguageController.selectLanguage != null) {
language = mhLanguageController.selectLanguage.value!.language_code;
}
if (language != null && language.isNotEmpty) {
if (queryUrl.contains("?")) {
queryUrl += "&lang=$language";
@@ -113,7 +113,7 @@ class ApplyRepairController extends GetControllerEx<ApplyRepairModel> {
return ApiResponse(code: -1, msg: "失败".tr);
}
} else {
apiResponse.msg = "未选择图片".tr;
apiResponse.msg = "我的.未选择图片".tr;
return apiResponse;
}
} catch (e) {