* @copyright By CatchAdmin * @license https://github.com/yanwenwu/catch-admin/blob/master/LICENSE.txt */ 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'); } /** * * @time 2020年07月19日 * @param Input $input * @param Output $output * @return int|void|null */ public function execute(Input $input, Output $output) { (new SyncWechatUsers())->start(); } }