Ken 6 giorni fa
parent
commit
4c9339c5d1
1 ha cambiato i file con 13 aggiunte e 16 eliminazioni
  1. 13 16
      app/Services/IssueService.php

+ 13 - 16
app/Services/IssueService.php

@@ -228,25 +228,22 @@ class IssueService extends BaseService
                 //停止下注的信息不发了
 //                self::asyncBettingGroupNotice($text, $buttons, $image);
             }
-        }
-
-        // 投注情况通知
-        if ($pc28Switch == 0) BetService::statNotice($info->issue_no);
-
+            // 投注情况通知  xxxx期投注统计
+            BetService::statNotice($info->issue_no);
 
-        $replyInfo = KeyboardService::findOne(['button' => '封盘开奖']);
-        if ($replyInfo) {
-            $text = $replyInfo->reply;
-            $buttons = json_decode($replyInfo->buttons, true);
-            $image = $replyInfo->image;
-            if ($image) {
-                $image = url($image);
+            $replyInfo = KeyboardService::findOne(['button' => '封盘开奖']);
+            if ($replyInfo) {
+                $text = $replyInfo->reply;
+                $buttons = json_decode($replyInfo->buttons, true);
+                $image = $replyInfo->image;
+                if ($image) {
+                    $image = url($image);
+                }
+                // self::bettingGroupNotice($text, $buttons, $image);
+                self::asyncBettingGroupNotice($text, $buttons, $image);
             }
-            // self::bettingGroupNotice($text, $buttons, $image);
-            if ($pc28Switch == 0) self::asyncBettingGroupNotice($text, $buttons, $image);
-        }
-
 
+        }
         return ['code' => self::YES, 'msg' => '封盘成功'];
     }