* task #8244, bug #3543, fix recording wrong user ip on user login.

This commit is contained in:
Catouse
2020-11-11 14:57:00 +08:00
parent 03a29b0a90
commit aa56f5567f
@@ -1,7 +1,7 @@
<?php
if(strtolower($actionType) == 'reconnectxuanxuan' or strtolower($actionType) == 'loginxuanxuan')
{
$ip = $this->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();
}