From aa56f5567ff9676bed1f0a370ea5ff01d9242da7 Mon Sep 17 00:00:00 2001 From: Catouse Date: Wed, 11 Nov 2020 14:53:37 +0800 Subject: [PATCH] * task #8244, bug #3543, fix recording wrong user ip on user login. --- xuanxuan/module/action/ext/model/hook/create.xuanxuan.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xuanxuan/module/action/ext/model/hook/create.xuanxuan.php b/xuanxuan/module/action/ext/model/hook/create.xuanxuan.php index 0184dd0918..dcc64ff3c8 100644 --- a/xuanxuan/module/action/ext/model/hook/create.xuanxuan.php +++ b/xuanxuan/module/action/ext/model/hook/create.xuanxuan.php @@ -1,7 +1,7 @@ server->remote_addr; + $ip = helper::getRemoteIp(); $last = $this->server->request_time; $this->dao->update(TABLE_USER)->set('visits = visits + 1')->set('ip')->eq($ip)->set('last')->eq($last)->where('account')->eq($actor)->exec(); }