From c178b9d2da5a589a2d3a0e3c22904da522883e27 Mon Sep 17 00:00:00 2001 From: Anyon Date: Mon, 9 Dec 2019 19:03:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=BE=AE=E4=BF=A1=E7=B2=89?= =?UTF-8?q?=E4=B8=9D=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/wechat/command/WechatFans.php | 12 ++++++++++++ app/wechat/controller/Fans.php | 17 +++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 app/wechat/command/WechatFans.php diff --git a/app/wechat/command/WechatFans.php b/app/wechat/command/WechatFans.php new file mode 100644 index 000000000..c0b6ce463 --- /dev/null +++ b/app/wechat/command/WechatFans.php @@ -0,0 +1,12 @@ +getAppid(); + sysqueue('同步粉丝数据', "xsync:fans {$appid} -", 1, [], 0); + $this->success('创建任务成功,请等待完成!'); + } catch (HttpResponseException $exception) { + throw $exception; + } catch (\Exception $exception) { + $this->error("创建任务失败,{$exception->getMessage()}"); + } + } + /** * 批量拉黑粉丝 * @auth true