dever 6 years ago
parent
commit
e0a8c287df
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/Project.php

+ 4 - 0
src/Project.php

@@ -147,11 +147,15 @@ class Project
         if ($data) {
             # 比如属于weixin项目的group_list
             # weixin.mazephp.com/data.group_list
+            $time = time();
             foreach ($data as $k => $v) {
                 Dever::daemon($v['interface'], $v['project']);
 
                 $param['where_id'] = $v['id'];
                 $param['set_ldate'] = $v['ldate'] + $v['time'];
+                if ($param['set_ldate'] < $time) {
+                    $param['set_ldate'] = $time + $v['time'];
+                }
                 if ($v['time'] <= 0) {
                     $param['set_state'] = 2;
                 }