Ken há 5 dias atrás
pai
commit
c50b6b8119
1 ficheiros alterados com 7 adições e 6 exclusões
  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);
                 }