Explorar el Código

开始同步时间超过当前时间,重新设置缓存

dong025 hace 4 días
padre
commit
801aa97e09
Se han modificado 2 ficheros con 2 adiciones y 1 borrados
  1. 1 1
      app/admin/command/FengSu.php
  2. 1 0
      app/admin/command/JuShuiTan.php

+ 1 - 1
app/admin/command/FengSu.php

@@ -163,7 +163,7 @@ class FengSu extends Command
                 'next_time_space' => $next_time_space
             ];
         }
-
+        Cache::set('jushuitan', $fengsu);
         $startTime = date('Y-m-d H:i:s', $fengsu['startTime']);
         $endTime = date('Y-m-d H:i:s', $fengsu['endTime']);
         $pageNum=(int)$fengsu['pageNum'];

+ 1 - 0
app/admin/command/JuShuiTan.php

@@ -158,6 +158,7 @@ class JuShuiTan extends Command
                 'next_time_space' => $next_time_space
             ];
         }
+        Cache::set('jushuitan', $jushuitan);
         $startTime = date('Y-m-d H:i:s', $jushuitan['startTime']);
         $endTime = date('Y-m-d H:i:s', $jushuitan['endTime']);
         $pageNum = (int)$jushuitan['pageNum'];