stanley-king il y a 2 ans
Parent
commit
063c9e815f
2 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 2 0
      crontab/control/minutes.php
  2. 1 0
      crontab/index.php

+ 2 - 0
crontab/control/minutes.php

@@ -412,6 +412,8 @@ class minutesControl extends BaseCronControl
     //任务队列处理
     public function taskOp()
     {
+        defined('APP_ID') or define('APP_ID','task');
+
         $task_manager = new task\manager();
         $task_id = 0;
         while (true)

+ 1 - 0
crontab/index.php

@@ -3,6 +3,7 @@
 if (empty($_SERVER['argv'][1])) exit('Access Invalid!');
 
 defined('APP_ID') or define('APP_ID','crontab');
+
 defined('BASE_ROOT_PATH') or define('BASE_ROOT_PATH',str_replace('/crontab','',dirname(__FILE__)));
 defined('BASE_PATH') or define('BASE_PATH',BASE_ROOT_PATH . '/crontab');