2020-06-20 08:49:16 +08:00
|
|
|
<?php
|
|
|
|
namespace catchAdmin\wechat;
|
|
|
|
|
|
|
|
use catchAdmin\wechat\command\SyncUsersCommand;
|
|
|
|
use think\Service;
|
|
|
|
|
|
|
|
class CatchWechatService extends Service
|
|
|
|
{
|
|
|
|
public function boot()
|
2020-06-21 14:41:46 +08:00
|
|
|
{}
|
|
|
|
|
|
|
|
public function register()
|
2020-06-20 08:49:16 +08:00
|
|
|
{
|
2020-06-21 14:41:46 +08:00
|
|
|
$this->registerCommand();
|
2020-06-20 08:49:16 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
public function registerCommand()
|
|
|
|
{
|
|
|
|
$this->commands([
|
|
|
|
SyncUsersCommand::class,
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
}
|