diff --git a/application/wechat/controller/Fans.php b/application/wechat/controller/Fans.php index 4ef42dedf..1c2010878 100644 --- a/application/wechat/controller/Fans.php +++ b/application/wechat/controller/Fans.php @@ -115,9 +115,10 @@ class Fans extends Controller public function sync() { try { - sysoplog('微信管理', '创建微信粉丝同步任务'); - QueueService::add("同步粉丝列表", WechatQueue::URI, 0, [], 0); - $this->success('创建同步粉丝任务成功,需要时间来完成。
请到系统任务管理查看进度!'); + $this->appid = WechatService::getAppid(); + sysoplog('微信管理', "创建微信[{$this->appid}]粉丝同步任务"); + QueueService::add("同步[{$this->appid}]粉丝列表", WechatQueue::URI, 0, ['appid' => $this->appid], 0); + $this->success('创建同步粉丝任务成功,需要时间来完成。
请到系统任务管理查看执行进度!'); } catch (HttpResponseException $exception) { throw $exception; } catch (\Exception $e) {