Ken 2 周之前
父节点
当前提交
2f9a06246f
共有 4 个文件被更改,包括 80 次插入24 次删除
  1. 22 21
      app/Services/QianBaoWithdrawService.php
  2. 20 1
      lang/en/messages.php
  3. 20 1
      lang/vi/messages.php
  4. 18 1
      lang/zh-CN/messages.php

+ 22 - 21
app/Services/QianBaoWithdrawService.php

@@ -164,20 +164,21 @@ class QianBaoWithdrawService
     {
         $channel = '';
         $card = "";
+        $text = "";
         switch ($type) {
             case "bank":
-                $card = "银行卡";
-                $text = "请选择提现的银行卡";
+                $card = lang("银行卡");
+                $text = lang("请选择提现的银行卡");
                 $channel = 'DF001';
                 break;
             case "aliPay":
-                $card = "支付宝";
-                $text = "请选择提现的支付宝";
+                $card = lang("支付宝");
+                $text = lang("请选择提现的支付宝");
                 $channel = "DF002";
                 break;
             case "digital_RMB":
-                $card = "数字人民币";
-                $text = "请选择提现的账户";
+                $card = lang("数字人民币");
+                $text = lang("请选择提现的账户");
                 $channel = "DF005";
                 break;
         }
@@ -187,8 +188,8 @@ class QianBaoWithdrawService
             $keyboard[] = [['text' => $item->getAlias(), 'callback_data' => "withdrawAddress@@choose_qb_{$item->getId()}"]];
         }
         $keyboard[] = [
-            ['text' => "{$card}管理", 'callback_data' => "withdraw@@management_{$channel}"],
-            ['text' => "返回", 'callback_data' => "withdraw@@qb_show_channel"]];
+            ['text' => "{$card}" . lang("管理"), 'callback_data' => "withdraw@@management_{$channel}"],
+            ['text' => lang("返回"), 'callback_data' => "withdraw@@qb_show_channel"]];
         return [
             'chat_id' => $chatId,
             'text' => $text,
@@ -213,43 +214,43 @@ class QianBaoWithdrawService
             ->count();
 
 
-        $text = "👤 {$firstName}({$chatId})    钱宝提现记录\n\n";
+        $text = "👤 {$firstName}({$chatId})    " . lang('钱宝提现记录') . "\n\n";
         foreach ($list as $item) {
             $amount = floatval($item->amount);
 
             $amount = $item->type == 2 ? "➖ {$amount}" : "➕ $amount";
             $text .= "-------------------------------------\n";
             $text .= "{$amount} \n";
-            $text .= "订单号:{$item->order_no}\n";
+            $text .= lang("订单号") . ":{$item->order_no}\n";
 
-            $text .= "银行:{$item->bank_name}\n";
-            $text .= "姓名:{$item->account}\n";
-            $text .= "卡号:{$item->card_no}\n";
-            $status = ['待处理', '处理中', '成功', '失败'];
-            $text .= "状态:{$status[$item->status]}\n";
+            $text .= lang('银行') . ":{$item->bank_name}\n";
+            $text .= lang("姓名") . ":{$item->account}\n";
+            $text .= lang("卡号") . ":{$item->card_no}\n";
+            $status = [lang('待处理'), lang('处理中'), lang('成功'), lang('失败')];
+            $text .= lang("状态") . ":{$status[$item->status]}\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' => "withdraw@@bank_bill_" . ($page - 1)]
+                ['text' => lang("👆上一页"), 'callback_data' => "withdraw@@bank_bill_" . ($page - 1)]
             ];
         }
         $allPage = ceil($count / $limit);
         if ($allPage > $page) {
             if ($page > 1) {
-                $keyboard[count($keyboard) - 1][] = ['text' => "👇下一页", 'callback_data' => "withdraw@@bank_bill_" . ($page + 1)];
+                $keyboard[count($keyboard) - 1][] = ['text' => lang("👇下一页"), 'callback_data' => "withdraw@@bank_bill_" . ($page + 1)];
             } else {
                 $keyboard[] = [
-                    ['text' => "👇下一页", 'callback_data' => "withdraw@@bank_bill_" . ($page + 1)]
+                    ['text' => lang("👇下一页"), 'callback_data' => "withdraw@@bank_bill_" . ($page + 1)]
                 ];
             }
         }
         $keyboard[] = [
-            ['text' => "返回", 'callback_data' => "topUp@@home"]
+            ['text' => lang("返回"), 'callback_data' => "topUp@@home"]
         ];
         return [
             'chat_id' => $chatId,

+ 20 - 1
lang/en/messages.php

@@ -72,7 +72,26 @@ return [
     "USDT" => "USDT",
     "银行卡" => "Bank card",
     "支付宝" => "Alipay",
-    "数字人民币" => "Digital RMB"
+    "数字人民币" => "Digital RMB",
+    "请选择提现的银行卡" => "Please select the bank card for withdrawal",
+    "请选择提现的支付宝" => "Please select Alipay for withdrawal",
+    "请选择提现的账户" => "Please select the account for withdrawal",
+    "管理" => "Manage",
+    "钱宝提现记录" => "Qianbao withdrawal records",
+    "订单号" => "Order number",
+    "银行" => "Bank",
+    "姓名" => "Name",
+    "卡号" => "Card number",
+    "待处理" => "Pending",
+    "处理中" => "Processing",
+    "成功" => "Success",
+    "失败" => "Failure",
+    "状态" => "Status",
+    "说明" => "Description",
+    "日期" => "Date",
+    "👆上一页" => "👆Previous page",
+    "👇下一页" => "👇Next page"
+
 
 
 

+ 20 - 1
lang/vi/messages.php

@@ -72,7 +72,26 @@ return [
     "USDT" => "USDT",
     "银行卡" => "Thẻ ngân hàng",
     "支付宝" => "Alipay",
-    "数字人民币" => "Nhân dân tệ kỹ thuật số"
+    "数字人民币" => "Nhân dân tệ kỹ thuật số",
+    "请选择提现的银行卡" => "Vui lòng chọn thẻ ngân hàng để rút tiền",
+    "请选择提现的支付宝" => "Vui lòng chọn Alipay để rút tiền",
+    "请选择提现的账户" => "Vui lòng chọn tài khoản để rút tiền",
+    "管理" => "Quản lý",
+    "钱宝提现记录" => "Lịch sử rút tiền Qianbao",
+    "订单号" => "Mã đơn hàng",
+    "银行" => "Ngân hàng",
+    "姓名" => "Tên",
+    "卡号" => "Số thẻ",
+    "待处理" => "Chờ xử lý",
+    "处理中" => "Đang xử lý",
+    "成功" => "Thành công",
+    "失败" => "Thất bại",
+    "状态" => "Trạng thái",
+    "说明" => "Mô tả",
+    "日期" => "Ngày",
+    "👆上一页" => "👆Trang trước",
+    "👇下一页" => "👇Trang sau"
+
 
 
 ];

+ 18 - 1
lang/zh-CN/messages.php

@@ -73,6 +73,23 @@ return [
     "银行卡" => "银行卡",
     "支付宝" => "支付宝",
     "数字人民币" => "数字人民币",
-
+    "请选择提现的银行卡" => "请选择提现的银行卡",
+    "请选择提现的支付宝" => "请选择提现的支付宝",
+    "请选择提现的账户" => "请选择提现的账户",
+    "管理" => "管理",
+    "钱宝提现记录" => "钱宝提现记录",
+    "订单号" => "订单号",
+    "银行" => "银行",
+    "姓名" => "姓名",
+    "卡号" => "卡号",
+    "待处理" => "待处理",
+    "处理中" => "处理中",
+    "成功" => "成功",
+    "失败" => "失败",
+    "状态" => "状态",
+    "说明" => "说明",
+    "日期" => "日期",
+    "👆上一页" => "👆上一页",
+    "👇下一页" => "👇下一页",
 
 ];