项目初始化

This commit is contained in:
2026-03-06 00:29:28 +08:00
commit 9ed4c1bc58
577 changed files with 57404 additions and 0 deletions

26
app/Request.php Normal file
View File

@@ -0,0 +1,26 @@
<?php
namespace app;
/**
* 应用请求对象类
*/
class Request extends \think\Request
{
/**
* 全局过滤规则
* app/common.php 的 filter 函数
*/
protected $filter = 'filter';
public function __construct()
{
parent::__construct();
// 从配置文件读取代理服务器ip并设置给 \think\Request
$proxyServerIp = config('buildadmin.proxy_server_ip');
if (is_array($proxyServerIp) && $proxyServerIp) {
$this->proxyServerIp = $proxyServerIp;
}
}
}