catchAdmin/catch/wechat/CatchWechatService.php

43 lines
825 B
PHP
Raw Normal View History

2020-06-20 08:49:16 +08:00
<?php
namespace catchAdmin\wechat;
use catchAdmin\wechat\command\SyncUsersCommand;
use catcher\ModuleService;
2020-06-20 08:49:16 +08:00
use think\Service;
class CatchWechatService extends ModuleService
2020-06-20 08:49:16 +08:00
{
/**
* register
*
* @time 2020年06月24日
* @return void
*/
2020-06-21 14:41:46 +08:00
public function register()
2020-06-20 08:49:16 +08:00
{
parent::register();
2020-06-20 08:49:16 +08:00
}
/**
* register command
*
* @time 2020年06月24日
2020-07-02 14:01:47 +08:00
* @return array
*/
2020-07-02 14:01:47 +08:00
public function loadCommands()
2020-06-20 08:49:16 +08:00
{
2020-07-02 14:01:47 +08:00
return [__NAMESPACE__, __DIR__ . DIRECTORY_SEPARATOR . 'command'];
2020-06-20 08:49:16 +08:00
}
/**
* loaded router from
*
* @time 2020年06月24日
* @return string
*/
public function loadRouteFrom()
{
// TODO: Implement loadRouteFrom() method.
return __DIR__ . DIRECTORY_SEPARATOR . 'route.php';
}
2020-06-20 08:49:16 +08:00
}