From ce8c3a94d9d3c38a93ec0b57e600382b54022bf1 Mon Sep 17 00:00:00 2001 From: Karson Date: Mon, 25 Jan 2021 16:51:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96IP=E8=8E=B7=E5=8F=96=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/config.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/application/config.php b/application/config.php index 651de975..c3343ca2 100755 --- a/application/config.php +++ b/application/config.php @@ -51,6 +51,8 @@ return [ 'class_suffix' => false, // 控制器类后缀 'controller_suffix' => false, + // 获取IP的变量 + 'http_agent_ip' => 'REMOTE_ADDR', // +---------------------------------------------------------------------- // | 模块设置 // +----------------------------------------------------------------------