Ken 2 周之前
父節點
當前提交
fb07ae2136
共有 2 個文件被更改,包括 16 次插入12 次删除
  1. 9 9
      app/Services/TopUpService.php
  2. 7 3
      lang/zh/messages.php

+ 9 - 9
app/Services/TopUpService.php

@@ -52,7 +52,7 @@ class TopUpService
             ->whereIn('change_type', BalanceLogService::$RW)
             ->count();
 
-        $text = "👤 {$firstName}({$chatId})    钱包充值记录\n\n";
+        $text = "👤 {$firstName}({$chatId})    " . lang('钱包充值记录') . "\n\n";
         foreach ($list as $item) {
 
 
@@ -60,31 +60,31 @@ class TopUpService
             $amount = $amount < 0 ? ("➖ " . ($amount * -1)) : "➕ $amount";
             $balance = floatval($item->after_balance);
             $text .= "-------------------------------------\n";
-            $text .= "{$amount} \n余额:{$balance} \n";
-            $text .= "类别:{$item->change_type}\n";
+            $text .= "{$amount} \n" . lang('余额') . ":{$balance} \n";
+            $text .= lang('类别') . ":" . lang($item->change_type) . "\n";
             if ($item->remark) {
-                $text .= "说明:{$item->remark}\n";
+                $text .= lang("说明") . ":{$item->remark}\n";
             }
-            $text .= "日期:{$item->created_at}\n";
+            $text .= lang("日期") . ":{$item->created_at}\n";
         }
 
         if ($page > 1) {
             $keyboard[] = [
-                ['text' => "👆上一页", 'callback_data' => "topUpBillNextPage@@" . ($page - 1)]
+                ['text' => lang("👆上一页"), 'callback_data' => "topUpBillNextPage@@" . ($page - 1)]
             ];
         }
         $allPage = ceil($count / $limit);
         if ($allPage > $page) {
             if ($page > 1) {
-                $keyboard[count($keyboard) - 1][] = ['text' => "👇下一页", 'callback_data' => "topUpBillNextPage@@" . ($page + 1)];
+                $keyboard[count($keyboard) - 1][] = ['text' => lang("👇下一页"), 'callback_data' => "topUpBillNextPage@@" . ($page + 1)];
             } else {
                 $keyboard[] = [
-                    ['text' => "👇下一页", 'callback_data' => "topUpBillNextPage@@" . ($page + 1)]
+                    ['text' => lang("👇下一页"), 'callback_data' => "topUpBillNextPage@@" . ($page + 1)]
                 ];
             }
         }
         $keyboard[] = [
-            ['text' => "返回", 'callback_data' => "topUp@@home"]
+            ['text' => lang("↩️返回"), 'callback_data' => "topUp@@home"]
         ];
         return [
             'chat_id' => $chatId,

+ 7 - 3
lang/zh/messages.php

@@ -195,7 +195,7 @@ return [
     "⚠️提示:请务必确认提现地址正确无误,\n否则资金丢失将无法找回请自负!" => "⚠️提示:请务必确认提现地址正确无误,\n否则资金丢失将无法找回请自负!",
     '👩 客服帮助' => '👩 客服帮助',
     '你好,请选择功能菜单' => '你好,请选择功能菜单',
-    "您好,请选择功能菜单"=>"您好,请选择功能菜单",
+    "您好,请选择功能菜单" => "您好,请选择功能菜单",
     '近期注单' => '近期注单',
     '今日流水' => '今日流水',
     '流水列表' => '流水列表',
@@ -211,8 +211,12 @@ return [
     "🔥本期下注" => "🔥本期下注",
     "💰查看余额" => "💰查看余额",
     "投注大群" => "投注大群",
-    "选择语言"=>"选择语言",
-
+    "选择语言" => "选择语言",
+    "钱包充值记录" => "钱包充值记录",
+    "人工充值" => "人工充值",
+    "人工扣款" => "人工扣款",
+    "三方提现" => "三方提现",
+    "资产转移" => "资产转移",
 
 
 ];