فهرست منبع

开始同步时间超过当前时间,往前移动6分

dong025 4 روز پیش
والد
کامیت
0c6c1b3932
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      app/admin/command/FengSu.php
  2. 1 1
      app/admin/command/JuShuiTan.php

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

@@ -152,7 +152,7 @@ class FengSu extends Command
         //当开始时间大于现在时间,将开始时间向前调整3分钟
         $now_time = time();
         if ($fengsu['startTime']>=$now_time||($now_time - $fengsu['startTime']) < ($start_end_space_time - $next_time_space)) {
-            $pre_time_stamp = $start_end_space_time - $next_time_space;
+            $pre_time_stamp = 6*60;
             
             $startTime_stamp = $now_time - $pre_time_stamp;
             $endTime_stamp = $startTime_stamp + $start_end_space_time;

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

@@ -147,7 +147,7 @@ class JuShuiTan extends Command
         $now_time = time();
         if ($jushuitan['startTime']>=$now_time||($now_time - $jushuitan['startTime']) < ($start_end_space_time - $next_time_space)) {
             // dump("超时了");
-            $pre_time_stamp = $start_end_space_time - $next_time_space;
+            $pre_time_stamp = 6*60;
             
             $startTime_stamp = $now_time - $pre_time_stamp;
             $endTime_stamp = $startTime_stamp + $start_end_space_time;