Files
orico-official-website/app/Request.php

16 lines
387 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace app;
// 应用请求对象类
class Request extends \think\Request
{
protected $proxyServerIp = [];
public function __construct()
{
parent::__construct();
// 设置前端代理服务器IP地址让代理访问情况下正确获取真实客户端IP地址
$this->proxyServerIp = env('PROXY_SERVER_IP', ['120.79.27.160']);
}
}