seven 2 weeks ago
parent
commit
ea2464c82a
4 changed files with 8 additions and 5 deletions
  1. 5 5
      app/Services/BalanceLogService.php
  2. 1 0
      lang/en/messages.php
  3. 1 0
      lang/vi/messages.php
  4. 1 0
      lang/zh/messages.php

+ 5 - 5
app/Services/BalanceLogService.php

@@ -200,20 +200,20 @@ class BalanceLogService extends BaseService
         //     ->orderBy('created_at', 'desc')
         //     ->get();
 
-        $text = "流水历史 \n";
+        $text = lang("流水历史")." \n";
         foreach ($list as $item) {
             $text .= "---------------------\n";
-            $text .= "日期:{$item['date']} \n";
-            $text .= "流水: {$item['flow']} \n";
+            $text .= "日期: {$item['date']} \n";
+            $text .= "流水 {$item['flow']} \n";
             $text .= "返水: {$item['refund']} \n";
             $text .= "盈利: {$item['profit']} \n";
         }
 
         $keyboard = [[
-            ['text' => "👇下一页", 'callback_data' => "FlowingHistoryPage@@" . ($page + 1)]
+            ['text' => "👇".lang("下一页"), 'callback_data' => "FlowingHistoryPage@@" . ($page + 1)]
         ]];
         if ($page > 1) {
-            array_unshift($keyboard[0], ['text' => "👆上一页", 'callback_data' => "FlowingHistoryPage@@" . ($page - 1)]);
+            array_unshift($keyboard[0], ['text' => "👆".lang("上一页"), 'callback_data' => "FlowingHistoryPage@@" . ($page - 1)]);
         }
         return [
             'chat_id' => $memberId,

+ 1 - 0
lang/en/messages.php

@@ -242,5 +242,6 @@ return [
     "内容"=>"Content",
     "金额"=>"amount",
     "盈亏"=>"profit and loss",
+    "流水历史"=>"Flowing History",
 
 ];

+ 1 - 0
lang/vi/messages.php

@@ -242,6 +242,7 @@ return [
     "内容"=>"nội dung",
     "金额"=>"số tiền",
     "盈亏"=>"Lợi nhuận và lỗ",
+    "流水历史"=>"Lịch sử nước chảy",
 
 
 ];

+ 1 - 0
lang/zh/messages.php

@@ -242,6 +242,7 @@ return [
     "内容"=>"内容",
     "金额"=>"金额",
     "盈亏"=>"盈亏",
+    "流水历史"=>"流水历史",