@@ -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)
@@ -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');