49 lines
1.1 KiB
PHP
49 lines
1.1 KiB
PHP
<?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();
|
|
}
|
|
}
|