[更新]修改任务变量

This commit is contained in:
Anyon 2019-09-17 11:52:26 +08:00
parent 8053265314
commit da8cad80ec
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ class WechatQueue extends Queue
* @throws \think\Exception
* @throws \think\exception\PDOException
*/
public function execute(Input $input, Output $output, array $data)
public function execute(Input $input, Output $output, array $data = [])
{
$this->appid = $data['appid'];
$wechat = WechatService::WeChatUser($this->appid);

View File

@ -45,7 +45,7 @@ class WechatQueue extends Queue
* @throws \think\Exception
* @throws \think\exception\PDOException
*/
public function execute(Input $input, Output $output, array $data)
public function execute(Input $input, Output $output, array $data = [])
{
$appid = WechatService::getAppid();
$wechat = WechatService::WeChatUser();