Ken 1 周之前
父節點
當前提交
28e49d32df
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      app/Services/BaseService.php

+ 3 - 1
app/Services/BaseService.php

@@ -207,8 +207,10 @@ class BaseService
         foreach ($texts as $index => $item) {
             $botMsg = [
                 'chat_id' => "@{$bettingGroup}",
-                'text' => $item
+                'text' => $item,
+                'index'=>$index
             ];
+
             if ($index == 0 && count($keyboard) > 0) {
                 $botMsg['reply_markup'] = json_encode(['inline_keyboard' => $keyboard]);
             }