Ken 2 days ago
parent
commit
0acbb607b5
1 changed files with 6 additions and 5 deletions
  1. 6 5
      app/Services/PcIssueService.php

+ 6 - 5
app/Services/PcIssueService.php

@@ -47,6 +47,7 @@ class PcIssueService extends BaseService
                     $replyInfo = KeyboardService::findOne(['button' => '停止下注']);
                     if ($replyInfo) {
                         $text = $replyInfo->reply;
+                        $text .= "PC极速28";
                         $buttons = json_decode($replyInfo->buttons, true);
                         $image = $replyInfo->image;
                         if ($image) $image = url($image);
@@ -58,6 +59,7 @@ class PcIssueService extends BaseService
                     $replyInfo = KeyboardService::findOne(['button' => '封盘开奖']);
                     if ($replyInfo) {
                         $text = $replyInfo->reply;
+                        $text .= "PC极速28";
                         $buttons = json_decode($replyInfo->buttons, true);
                         $image = $replyInfo->image;
                         if ($image) $image = url($image);
@@ -199,7 +201,6 @@ class PcIssueService extends BaseService
         }
     }
 
-
     // 生成开奖图片
     private static function lotteryImage($issue_no)
     {
@@ -240,7 +241,6 @@ class PcIssueService extends BaseService
 
         PcIssue::where('issue_no', $issue_no)->update(['image' => $url]);
         return $url;
-
     }
 
     //创建新的一期
@@ -261,15 +261,14 @@ class PcIssueService extends BaseService
                 'start_time' => $issue->end_time,
                 'end_time' => date('Y-m-d H:i:s', $end_time),
             ]);
-            static::betTing($new_str);
             //预测
             PcPrediction::prediction($new_str);
             if (strtotime($issue->end_time) <= $now) {
                 static::createIssueNo();
+            } else {
+                static::betTing($new_str);
             }
         }
-
-
     }
 
     //群通知,发送玩法规则和开始下注的通知
@@ -289,6 +288,7 @@ class PcIssueService extends BaseService
         $replyInfo = KeyboardService::findOne(['button' => '玩法规则']);
         if ($replyInfo) {
             $text = $replyInfo->reply;
+            $text .= "PC极速28";
             $buttons = json_decode($replyInfo->buttons, true);
             $image = $replyInfo->image;
             if ($image) {
@@ -303,6 +303,7 @@ class PcIssueService extends BaseService
         $replyInfo = KeyboardService::findOne(['button' => '开始下注']);
         if ($replyInfo) {
             $text = $replyInfo->reply;
+            $text .= "PC极速28";
             $buttons = json_decode($replyInfo->buttons, true);
             $image = $replyInfo->image;
             if ($image) {