diff --git a/System/Async.php b/System/Async.php index eb5cd7dc..d038e673 100644 --- a/System/Async.php +++ b/System/Async.php @@ -35,7 +35,7 @@ class Async extends Component * @param array $params * @throws Exception */ - public function dispatch(string $name, array $params) + public function dispatch(string $name, array $params = []) { $server = Snowflake::app()->getSwoole(); if (!isset($server->setting['task_worker_num'])) {