多语言

This commit is contained in:
czz
2025-07-30 16:48:48 +08:00
parent 92b6896176
commit 300e3b31f6
96 changed files with 3741 additions and 2710 deletions

View File

@@ -147,7 +147,7 @@ class MHTLoginController extends GetControllerEx<LoginModel> {
String serviceApi = ServiceConstant.login;
String queryUrl = "${serviceAddress}${serviceName}${serviceApi}";
await requestWithLog(
logTitle: "用户登录",
logTitle: "用户登录".tr,
method: MyHttpMethod.post,
queryUrl: queryUrl,
data: data,
@@ -206,7 +206,7 @@ class MHTLoginController extends GetControllerEx<LoginModel> {
data['code'] = "mht";
await requestWithLog(
data: data,
logTitle: "发送验证码",
logTitle: "发送验证码".tr,
method: MyHttpMethod.post,
queryUrl: queryUrl,
onSuccess: (res) {
@@ -233,7 +233,7 @@ class MHTLoginController extends GetControllerEx<LoginModel> {
bool isWeChatInstalled = await fluwx.isWeChatInstalled;
debugPrint('is wechat installed: $isWeChatInstalled');
if (!isWeChatInstalled) {
showToast("请先安装微信APP再使用微信登录");
showToast("请先安装微信APP再使用微信登录".tr);
return;
}
}
@@ -266,7 +266,7 @@ class MHTLoginController extends GetControllerEx<LoginModel> {
"khCode": "mht",
};
ApiResponse apiResponse = await requestWithLog(
logTitle: "微信登录",
logTitle: "微信登录".tr,
method: MyHttpMethod.post,
queryUrl: queryUrl,
data: data);