mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-24 18:36:15 +08:00
增加微信粉丝处理
This commit is contained in:
parent
28b8c65153
commit
c178b9d2da
12
app/wechat/command/WechatFans.php
Normal file
12
app/wechat/command/WechatFans.php
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
namespace app\wechat\command;
|
||||||
|
|
||||||
|
use think\console\Command;
|
||||||
|
|
||||||
|
class WechatFans extends Command
|
||||||
|
{
|
||||||
|
// @todo 待完成指令
|
||||||
|
|
||||||
|
}
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user