mirror of
https://gitee.com/wonderful-code/buildadmin
synced 2024-11-21 22:55:36 +00:00
21 lines
437 B
PHP
21 lines
437 B
PHP
<?php
|
||
|
||
namespace app;
|
||
|
||
/**
|
||
* 应用请求对象类
|
||
*/
|
||
class Request extends \think\Request
|
||
{
|
||
public function __construct()
|
||
{
|
||
parent::__construct();
|
||
|
||
// 从配置文件读取代理服务器ip,并设置给 \think\Request
|
||
$proxyServerIp = config('buildadmin.proxy_server_ip');
|
||
if (is_array($proxyServerIp) && $proxyServerIp) {
|
||
$this->proxyServerIp = $proxyServerIp;
|
||
}
|
||
}
|
||
}
|