Ken 2 недель назад
Родитель
Сommit
a34f91e58e
4 измененных файлов с 29 добавлено и 16 удалено
  1. 11 11
      app/Services/WalletService.php
  2. 7 1
      lang/en/messages.php
  3. 6 3
      lang/vi/messages.php
  4. 5 1
      lang/zh/messages.php

+ 11 - 11
app/Services/WalletService.php

@@ -236,24 +236,24 @@ class WalletService extends BaseService
 
 
         $balance = number_format($selfInfo->available_balance, 2, '.', '');
-        $text = '';
-        $text .= "用户ID:{$memberId} \n";
-        $text .= "用户名:{$userInfo->username} \n";
-        $text .= "昵称:{$userInfo->first_name} \n";
-        $text .= "当前余额:{$balance} RMB\n";
+
+        $text = lang("用户ID") . ":{$memberId} \n";
+        $text .= lang('用户名') . ":{$userInfo->username} \n";
+        $text .= lang('昵称') . ":{$userInfo->first_name} \n";
+        $text .= lang('当前余额') . ":{$balance} RMB\n";
 
         $keyboard = [
             [
-                // ['text' => '➕充值', 'callback_data' => "topup@@topup"], 
-                ['text' => '➕充值', 'callback_data' => "topup@@sj_apply"],
-                ['text' => '🧾账单', 'callback_data' => "topup@@bill"],
+                // ['text' => lang('➕充值'), 'callback_data' => "topup@@topup"],
+                ['text' => lang('➕充值'), 'callback_data' => "topup@@sj_apply"],
+                ['text' => lang('🧾账单'), 'callback_data' => "topup@@bill"],
             ],
             [
-                ['text' => '➕ 提现', 'callback_data' => "withdraw@@qb_show_channel"],
-                ['text' => '🧾 提现账单', 'callback_data' => "withdraw@@bill"]
+                ['text' => lang('➕ 提现'), 'callback_data' => "withdraw@@qb_show_channel"],
+                ['text' => lang('🧾 提现账单'), 'callback_data' => "withdraw@@bill"]
             ],
             [
-                ['text'=>'🔑秘钥管理','callback_data'=>'secret@@index'],
+                ['text' => lang('🔑秘钥管理'), 'callback_data' => 'secret@@index'],
             ],
 
 

+ 7 - 1
lang/en/messages.php

@@ -120,7 +120,13 @@ return [
     "输入的银行卡号有误,请重新输入" => "Invalid bank card number entered, please re-enter",
     "请输入姓名" => "Please enter your name",
     "请输入别名" => "Please enter a nickname",
-    "请输入账号别名" => "Please enter account nickname"
+    "请输入账号别名" => "Please enter account nickname",
+    "➕充值" => "➕ Recharge",
+    "🧾账单" => "🧾 Bill",
+    "➕ 提现" => "➕ Withdraw",
+    "🧾 提现账单" => "🧾 Withdrawal Bill",
+    "🔑秘钥管理" => "🔑 Key Management",
+
 
 
 

+ 6 - 3
lang/vi/messages.php

@@ -120,9 +120,12 @@ return [
     "输入的银行卡号有误,请重新输入" => "Số thẻ ngân hàng nhập sai, vui lòng nhập lại",
     "请输入姓名" => "Vui lòng nhập tên",
     "请输入别名" => "Vui lòng nhập biệt danh",
-    "请输入账号别名" => "Vui lòng nhập biệt danh tài khoản"
-
-
+    "请输入账号别名" => "Vui lòng nhập biệt danh tài khoản",
+    "➕充值" => "➕ Nạp tiền",
+    "🧾账单" => "🧾 Hóa đơn",
+    "➕ 提现" => "➕ Rút tiền",
+    "🧾 提现账单" => "🧾 Hóa đơn rút tiền",
+    "🔑秘钥管理" => "🔑 Quản lý khóa bí mật",
 
 
 ];

+ 5 - 1
lang/zh/messages.php

@@ -121,5 +121,9 @@ return [
     "请输入姓名" => "请输入姓名",
     "请输入别名" => "请输入别名",
     "请输入账号别名" => "请输入账号别名",
-
+    "➕充值" => "➕充值",
+    "🧾账单" => "🧾账单",
+    "➕ 提现" => "➕ 提现",
+    "🧾 提现账单" => "🧾 提现账单",
+    "🔑秘钥管理" => "🔑秘钥管理",
 ];