eee
This commit is contained in:
+4
-2
@@ -77,8 +77,10 @@ class Task
|
|||||||
if (is_null($data)) {
|
if (is_null($data)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
$data[0] = Kiri::getDi()->get($data[0]);
|
[$handler, $params] = $data;
|
||||||
return call_user_func($data, $task_id, $src_worker_id);
|
|
||||||
|
$handler[0] = Kiri::getDi()->get($handler[0]);
|
||||||
|
return call_user_func($handler, $task_id, $src_worker_id, $params);
|
||||||
} catch (\Throwable $throwable) {
|
} catch (\Throwable $throwable) {
|
||||||
return $this->exception->emit($throwable, response());
|
return $this->exception->emit($throwable, response());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user