增加微信粉丝处理

This commit is contained in:
Anyon 2019-12-09 19:03:43 +08:00
parent 28b8c65153
commit c178b9d2da
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,12 @@
<?php
namespace app\wechat\command;
use think\console\Command;
class WechatFans extends Command
{
// @todo 待完成指令
}

View File

@ -64,6 +64,23 @@ class Fans extends Controller
} }
} }
/**
* 同步粉丝数据
* @auth true
*/
public function sync()
{
try {
$appid = WechatService::instance()->getAppid();
sysqueue('同步粉丝数据', "xsync:fans {$appid} -", 1, [], 0);
$this->success('创建任务成功,请等待完成!');
} catch (HttpResponseException $exception) {
throw $exception;
} catch (\Exception $exception) {
$this->error("创建任务失败,{$exception->getMessage()}");
}
}
/** /**
* 批量拉黑粉丝 * 批量拉黑粉丝
* @auth true * @auth true