Ken 2 weken geleden
bovenliggende
commit
8b65739f64
2 gewijzigde bestanden met toevoegingen van 9 en 8 verwijderingen
  1. 8 8
      app/Services/SanJinRechargeService.php
  2. 1 0
      lang/zh/messages.php

+ 8 - 8
app/Services/SanJinRechargeService.php

@@ -179,31 +179,31 @@ class SanJinRechargeService extends BaseService
                 $text .= "充值类型:{$item->bank_name}\n";
             }
           
-            $status = ['待处理', '处理中', '成功', '失败'];
-            $text .= "状态:{$status[$item->status]}\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' => "topup@@sj_bill_" . ($page - 1)]
+                ['text' => lang("👆上一页"), 'callback_data' => "topup@@sj_bill_" . ($page - 1)]
             ];
         }
         $allPage = ceil($count / $limit);
         if ($allPage > $page) {
             if ($page > 1) {
-                $keyboard[count($keyboard) - 1][] = ['text' => "👇下一页", 'callback_data' => "topup@@sj_bill_" . ($page + 1)];
+                $keyboard[count($keyboard) - 1][] = ['text' => lang("👇下一页"), 'callback_data' => "topup@@sj_bill_" . ($page + 1)];
             } else {
                 $keyboard[] = [
-                    ['text' => "👇下一页", 'callback_data' => "topup@@sj_bill_" . ($page + 1)]
+                    ['text' => lang("👇下一页"), 'callback_data' => "topup@@sj_bill_" . ($page + 1)]
                 ];
             }
         }
         $keyboard[] = [
-            ['text' => "返回", 'callback_data' => "topUp@@home"]
+            ['text' => lang("↩️返回"), 'callback_data' => "topUp@@home"]
         ];
         return [
             'chat_id' => $chatId,

+ 1 - 0
lang/zh/messages.php

@@ -152,4 +152,5 @@ return [
     "提现"=>"提现",
     "订单金额"=>"订单金额",
 
+
 ];