cxhxy/app/AppService.php
test_service d3170b4d1c 1
2023-12-01 15:43:29 +08:00

32 lines
632 B
PHP
Executable File

<?php
declare (strict_types=1);
namespace app;
use think\Service;
use think\facade\Log;
use think\facade\Request;
/**
* 应用服务类
*/
class AppService extends Service
{
// 服务注册
public function register()
{
}
// 服务启动
public function boot()
{
// // 记录访问日志
// if (!is_debug()) {
// Log::record('[ URL ] ' . print_r(Request::baseUrl(), true), 'begin');
// Log::record('[ HEADER ] ' . print_r(Request::header(), true), 'begin');
// Log::record('[ PARAM ] ' . print_r(Request::param(), true), 'begin');
// }
}
}