Ken 6 dní pred
rodič
commit
39800558d8
2 zmenil súbory, kde vykonal 20 pridanie a 12 odobranie
  1. 4 0
      app/Services/BetService.php
  2. 16 12
      app/Services/PcIssueService.php

+ 4 - 0
app/Services/BetService.php

@@ -431,6 +431,10 @@ class BetService extends BaseService
                     $gameplayRuleList = $gameplayRuleList->toArray();
                     $member_id = self::generateRandomNumber(10);
                     $betTimes = rand(1, $betNumber); // 每次下注次数
+
+
+
+
                     for ($i = 0; $i < $betTimes; $i++) {
                         sleep(mt_rand(0, 2));
                         if (strtotime($issueInfo['end_time']) - strtotime($now_date) < 22) {

+ 16 - 12
app/Services/PcIssueService.php

@@ -316,20 +316,24 @@ class PcIssueService extends BaseService
         $pc28Switch = Config::where('field', 'pc28_switch')->first()->val;
         $info->status = PcIssue::STATUS_BETTING;
         $info->save();
-        $replyInfo = KeyboardService::findOne(['button' => '玩法规则']);
-        if ($replyInfo) {
-            $text = $replyInfo->reply;
-            $buttons = json_decode($replyInfo->buttons, true);
-            $image = $replyInfo->image;
-            if ($image) {
-                $image = url($image);
-            }
-            if (empty($buttons)) {
-                $buttons = self::getOperateButton();
+        $wanFaGuiZeTime = Cache::get("玩法规则推送时间");
+        $now = time();
+        if ($now - $wanFaGuiZeTime > (60 * 15)) {
+            $replyInfo = KeyboardService::findOne(['button' => '玩法规则']);
+            if ($replyInfo) {
+                $text = $replyInfo->reply;
+                $buttons = json_decode($replyInfo->buttons, true);
+                $image = $replyInfo->image;
+                if ($image) {
+                    $image = url($image);
+                }
+                if (empty($buttons)) {
+                    $buttons = self::getOperateButton();
+                }
+                Cache::put('玩法规则推送时间', time());
+                if ($pc28Switch == 1) self::asyncBettingGroupNotice($text, $buttons, $image);
             }
-            if ($pc28Switch == 1) self::asyncBettingGroupNotice($text, $buttons, $image);
         }
-
         $replyInfo = KeyboardService::findOne(['button' => '开始下注']);
         if ($replyInfo) {
             $text = $replyInfo->reply;