Exemplo n.º 1
0
 /**
  * 更新登录时间
  *
  * @param  integer  $uid
  */
 public function updateLogin($uid)
 {
     $where = $this->_db->quoteInto('uid=?', $uid);
     $set = array('last_ip' => get_client_ip(), 'last_time' => time());
     $this->_db->update('user', $set, $where);
 }