seven 2 месяцев назад
Родитель
Сommit
d9dedc8d01
1 измененных файлов с 6 добавлено и 3 удалено
  1. 6 3
      app/Services/BalanceLogService.php

+ 6 - 3
app/Services/BalanceLogService.php

@@ -160,7 +160,6 @@ class BalanceLogService extends BaseService
     public static function getFlowingHistory($memberId ,$page = 1 ,$limit = 5)
     {
        $dateTime = date('Y-m-d 00:00:00');
-        $pageLimit = $page * $limit;
         $list = [];
         for ($i=0; $i < $limit; $i++) { 
             $newIndex = ($page -1) * $limit + $i;
@@ -207,8 +206,12 @@ class BalanceLogService extends BaseService
             $text .= "返水: {$item['refund']} \n";
             $text .= "盈利: {$item['profit']} \n";
         }
-        
-        return $text;
+
+        $msg = [];
+        $msg['chat_id'] = $memberId;
+        $msg['text'] = $text;
+
+        return $msg;
     }
 
 }