public function countLogin() { $_where = array("user='******'user']}'"); $_updateData['login_count'] = array('login_count+1'); $_updateData['last_ip'] = Tool::getIP(); $_updateData['last_time'] = Tool::getDate(); parent::update($_where, $_updateData); }