Ken 2 gün önce
ebeveyn
işleme
c57d41ca02
1 değiştirilmiş dosya ile 4 ekleme ve 5 silme
  1. 4 5
      app/Services/PcIssueService.php

+ 4 - 5
app/Services/PcIssueService.php

@@ -268,21 +268,21 @@ class PcIssueService extends BaseService
             if (strtotime($issue->end_time) <= $now) {
                 static::createIssueNo();
             } else {
-                static::betTing($new_str);
+                static::betting($new_str);
             }
         }
     }
 
     //群通知,发送玩法规则和开始下注的通知
-    private static function betTing($issue_no): array
+    private static function betting($issue_no): void
     {
         $info = PcIssue::where('issue_no', $issue_no)->first();
         if (!$info) {
-            return ['code' => self::NOT, 'msg' => '期号不存在'];
+            return;
         }
 
         if (!in_array($info->status, [PcIssue::STATUS_DRAFT, PcIssue::STATUS_BETTING])) {
-            return ['code' => self::NOT, 'msg' => '期号状态不正确'];
+            return;
         }
         $pc28Switch = Config::where('field', 'pc28_switch')->first()->val;
         $info->status = PcIssue::STATUS_BETTING;
@@ -314,7 +314,6 @@ class PcIssueService extends BaseService
             if ($pc28Switch == 1) self::asyncBettingGroupNotice($text, $buttons, $image);
         }
 
-        return ['code' => self::YES, 'msg' => '开始下注'];
     }
 
     //获取随机的20个数字