This commit is contained in:
as2252258@163.com
2021-05-04 01:43:16 +08:00
parent c3b67d5969
commit 20bf15dda6
+1 -1
View File
@@ -35,7 +35,7 @@ class OnWorkerStart extends Callback
$annotation = Snowflake::app()->getAnnotation();
if ($worker_id >= $server->setting['worker_num']) {
$annotation->read(MODEL_PATH, 'App\Models');
$annotation->read(MODEL_PATH, 'App');
$annotation->runtime(APP_PATH, [CONTROLLER_PATH, TASK_PATH, LISTENER_PATH]);
$this->onTask($server, $annotation);
} else {