12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?php
- /**
- * @filename GetModuleTrait.php
- * @createdAt 2020/2/24
- * @project https://github.com/yanwenwu/catch-admin
- * @document http://doc.catchadmin.com
- * @author JaguarJack <njphper@gmail.com>
- * @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();
- }
- }
|