Ken 5 天之前
父節點
當前提交
c50b6b8119
共有 1 個文件被更改,包括 7 次插入6 次删除
  1. 7 6
      app/Services/BetService.php

+ 7 - 6
app/Services/BetService.php

@@ -513,12 +513,13 @@ class BetService extends BaseService
                             }
                         }
                     }
-                    $groupText .= "\n-------- \n";
-                    $inlineButton = self::getOperateButton();
-                    // 群通知  暂停2秒再发送,避免同时发送多个消息而超过 Telegram 的频率限制
-                    self::asyncBettingGroupNotice($groupText, $inlineButton);   // 异步群通知
-                    sleep(2);
-
+                    if($groupText!=""){
+                        $groupText .= "\n-------- \n";
+                        $inlineButton = self::getOperateButton();
+                        // 群通知  暂停2秒再发送,避免同时发送多个消息而超过 Telegram 的频率限制
+                        self::asyncBettingGroupNotice($groupText, $inlineButton);   // 异步群通知
+                        sleep(2);
+                    }
 
                     Cache::put('fake_bet_' . $issueInfo->issue_no, $fake_bet_list, 500);
                 }