Ken 6 天之前
父节点
当前提交
3adf1acc3c
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      app/Services/PcIssueService.php

+ 2 - 1
app/Services/PcIssueService.php

@@ -319,7 +319,7 @@ class PcIssueService extends BaseService
 
 
 
 
         $pc28Switch = Config::where('field', 'pc28_switch')->first()->val;
         $pc28Switch = Config::where('field', 'pc28_switch')->first()->val;
-        $wanFaGuiZeTime = Cache::get("玩法规则推送时间",0);
+        $wanFaGuiZeTime = Cache::get("玩法规则推送时间", 0);
         $now = time();
         $now = time();
         if ($now - $wanFaGuiZeTime > (60 * 15)) {
         if ($now - $wanFaGuiZeTime > (60 * 15)) {
             $replyInfo = KeyboardService::findOne(['button' => '玩法规则']);
             $replyInfo = KeyboardService::findOne(['button' => '玩法规则']);
@@ -376,6 +376,7 @@ class PcIssueService extends BaseService
     //根据指定0-27的数字 得到20个数字
     //根据指定0-27的数字 得到20个数字
     public static function getMatchingNumbers($target): array|null
     public static function getMatchingNumbers($target): array|null
     {
     {
+        $target = intval($target);
         $numbers = range(1, 80);
         $numbers = range(1, 80);
         $bestMatch = null;
         $bestMatch = null;
         for ($i = 0; $i < 100000; $i++) {
         for ($i = 0; $i < 100000; $i++) {