dever 6 年之前
父节点
当前提交
59592bc6ca
共有 2 个文件被更改,包括 4 次插入1 次删除
  1. 1 0
      journal/database/active.php
  2. 3 1
      main/lib/Cron.php

+ 1 - 0
journal/database/active.php

@@ -204,6 +204,7 @@ return array
             'option' => array
             (
                 'end' => array('yes', '<='),
+                'ends' => array('yes-end', '>'),
                 'state' => 1,
             ),
             'type' => 'all',

+ 3 - 1
main/lib/Cron.php

@@ -70,8 +70,10 @@ class Cron
     public function activeEnd()
     {
     	$time = 5*3600;
-    	$where['end'] = time() + $time;
+    	$where['ends'] = time();
+        $where['end'] = $where['ends'] + $time;
         $data = Dever::db('journal/active')->getDataByTime($where);
+        //echo Dever::sql();die;
 
         $test = Dever::input('test');
         if ($test == 1) {