CatchWechatService.php 825 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. namespace catchAdmin\wechat;
  3. use catchAdmin\wechat\command\SyncUsersCommand;
  4. use catcher\ModuleService;
  5. use think\Service;
  6. class CatchWechatService extends ModuleService
  7. {
  8. /**
  9. * register
  10. *
  11. * @time 2020年06月24日
  12. * @return void
  13. */
  14. public function register()
  15. {
  16. parent::register();
  17. }
  18. /**
  19. * register command
  20. *
  21. * @time 2020年06月24日
  22. * @return array
  23. */
  24. public function loadCommands()
  25. {
  26. return [__NAMESPACE__, __DIR__ . DIRECTORY_SEPARATOR . 'command'];
  27. }
  28. /**
  29. * loaded router from
  30. *
  31. * @time 2020年06月24日
  32. * @return string
  33. */
  34. public function loadRouteFrom()
  35. {
  36. // TODO: Implement loadRouteFrom() method.
  37. return __DIR__ . DIRECTORY_SEPARATOR . 'route.php';
  38. }
  39. }