12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?php
- namespace catchAdmin\wechat\command;
- use catchAdmin\wechat\library\SyncWechatUsers;
- use catchAdmin\wechat\model\WechatUsers;
- use catcher\exceptions\FailedException;
- use catcher\facade\Trie;
- use catcher\library\ProgressBar;
- use catcher\library\WeChat;
- use catcher\Utils;
- use think\Collection;
- use think\console\Command;
- use think\console\Input;
- use think\console\Output;
- use think\Db;
- class SyncUsersCommand extends Command
- {
- protected $officialAccount;
- public function configure()
- {
- $this->setName('sync:users')
- ->setDescription('sync wechat users');
- }
-
- public function execute(Input $input, Output $output)
- {
- (new SyncWechatUsers())->start();
- }
- }
|