/** * 自动初始化用户状态 */ public function auto() { if ($this->isLogin()) { $bind = array(); $bind['last_active'] = time(); $this->update($this->id, $bind); } $this->log = Widget_Log_Manager::getInstance(); }