zentaopms/extension/xuan/action/ext/model/hook/create.xuanxuan.php
2023-05-16 10:50:42 +08:00

8 lines
329 B
PHP
Executable File

<?php
if(strtolower($actionType) == 'reconnectxuanxuan' or strtolower($actionType) == 'loginxuanxuan')
{
$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();
}