From 05c6d4b49dd18f32e40e9c1a07e893b3e4f632cb Mon Sep 17 00:00:00 2001 From: Anyon Date: Sat, 3 Aug 2019 15:10:07 +0800 Subject: [PATCH] Update Fans.php --- application/wechat/controller/Fans.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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) {