From 2610267aba93bd0215f5fbf870fa7e08f993b8cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 24 Mar 2021 17:34:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- System/Async.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'])) {