请求信息
//获取请求参数 get|post $data['get']=\PhalApi\DI()->request->get('city_id'); //获取客户端ip $data['ip'] = \PhalApi\Tool::getClientIp(); //根目录 $data['root_path'] = API_ROOT; //获取配置文件 $data['test'] = \PhalApi\DI()->config->get('sys.debug'); //获取请求的接口名 $data['request_api'] = \PhalApi\DI()->request->getService(); //获取请求的header 必须指定字段 $data['request_header'] = \PhalApi\DI()->request->getHeader('User-Agent');