You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

34 lines
912 B

<?php
declare(strict_types=1);
/**
* Request.php
* Created by PhpStorm.
* Date: 2026/10/17
* Time: 17:20
* Author: qian.guo
* E-mail: yiyezhiqiutel@gmail.com
*/
namespace app;
use think\Request as BaseRequest;
/**
* 应用请求对象
*
* 继承框架 Request,目前不加重写逻辑。
*
* 为什么必须有这个文件、哪怕它是空的:
* app/provider.php 里按框架约定绑定了
* 'think\Request' => app\Request::class
* 这是官方骨架的做法 —— 先把请求类型定成自己的,将来要加
* 「统一参数过滤」「请求 ID」「多语言」时只改本类,不用动业务代码。
*
* 如果这个类不存在而绑定了它,一旦容器解析 think\Request
* 就会抛 Class "app\Request" not found,报错信息还指向 provider.php,
* 很容易被误判成「绑定写错了」。
*/
class Request extends BaseRequest
{
}