Ken 6 days ago
parent
commit
1464c727ec
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app/Services/IssueService.php

+ 2 - 1
app/Services/IssueService.php

@@ -164,8 +164,9 @@ class IssueService extends BaseService
 
         $pc28Switch = Config::where('field', 'pc28_switch')->first()->val;
 
-        $wanFaGuiZeTime = Cache::get("玩法规则推送时间");
+        $wanFaGuiZeTime = Cache::get("玩法规则推送时间",0);
         $now = time();
+        $wanFaGuiZeTime = intval($wanFaGuiZeTime);
         if ($now - $wanFaGuiZeTime > (60 * 15)) {
             $replyInfo = KeyboardService::findOne(['button' => '玩法规则']);
             if ($replyInfo) {