Ken hai 2 semanas
pai
achega
bfff9e1363
Modificáronse 1 ficheiros con 9 adicións e 14 borrados
  1. 9 14
      app/Services/BalanceLogService.php

+ 9 - 14
app/Services/BalanceLogService.php

@@ -207,23 +207,18 @@ class BalanceLogService extends BaseService
             $text .= "盈利: {$item['profit']} \n";
         }
 
-        $keyboard = [
-            [
-                ['text' => "👇下一页", 'callback_data' => "FlowingHistoryPage@@" . ($page + 1)]
-            ]
-        ];
-
+        $keyboard = [[
+            ['text' => "👇下一页", 'callback_data' => "FlowingHistoryPage@@" . ($page + 1)]
+        ]];
         if ($page > 1) {
             array_unshift($keyboard[0], ['text' => "👆上一页", 'callback_data' => "FlowingHistoryPage@@" . ($page - 1)]);
         }
-
-
-        $msg = [];
-        $msg['chat_id'] = $memberId;
-        $msg['text'] = $text;
-        $msg['message_id'] = $messageId;
-        $msg['reply_markup'] = json_encode(['inline_keyboard' => $keyboard]);
-        return $msg;
+        return [
+            'chat_id' => $memberId,
+            'text' => $text,
+            'message_id' => $messageId,
+            'reply_markup' => json_encode(['inline_keyboard' => $keyboard]),
+        ];
     }
 
 }