浏览代码

计划任务

lizhen_gitee 3 天之前
父节点
当前提交
edf5e4e4fa
共有 1 个文件被更改,包括 1 次插入7 次删除
  1. 1 7
      application/index/controller/Plantask.php

+ 1 - 7
application/index/controller/Plantask.php

@@ -19,6 +19,7 @@ class Plantask extends Controller
         $end_time   = time() - (3600 * 2);
         $sql        = "update `mt_user` set is_active = 0 where is_active = 1 and id in (select user_id from mt_user_active where requesttime between {$start_time} and {$end_time})";
         db()->query($sql);
+
     }
 
     ////////////////////////////////////////////////////////
@@ -326,12 +327,5 @@ class Plantask extends Controller
     }
     ////////////////////////////////////////////////////////
 
-    private function error($msg){
-        echo $msg;exit;
-    }
-
-    private function success($msg){
-        echo $msg;exit;
-    }
 
 }