Ken 6 天之前
父節點
當前提交
1464c727ec
共有 1 個文件被更改,包括 2 次插入1 次删除
  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) {