AppService.php 632 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. declare (strict_types=1);
  3. namespace app;
  4. use think\Service;
  5. use think\facade\Log;
  6. use think\facade\Request;
  7. /**
  8. * 应用服务类
  9. */
  10. class AppService extends Service
  11. {
  12. // 服务注册
  13. public function register()
  14. {
  15. }
  16. // 服务启动
  17. public function boot()
  18. {
  19. // // 记录访问日志
  20. // if (!is_debug()) {
  21. // Log::record('[ URL ] ' . print_r(Request::baseUrl(), true), 'begin');
  22. // Log::record('[ HEADER ] ' . print_r(Request::header(), true), 'begin');
  23. // Log::record('[ PARAM ] ' . print_r(Request::param(), true), 'begin');
  24. // }
  25. }
  26. }