login && !$t) { $this->showLogin(); } if ($t) { if ($t = Secure::checkLogin($t)) { if ($t['uid'] && $t['uid'] > 0) { Place::user($t['uid']); } if ($this->login && !Place::$uid) { $this->showLogin(); } } elseif ($this->login) { $this->showLogin(); } } if ($this->entry) { if (Place::$info['type'] >= 2 && !Place::$uid) { Dever::error('您没有权限', -2); } /* if (Place::$member && Place::$user['entry_type'] <= 2) { Dever::error('您没有权限'); }*/ } } protected function showLogin() { Dever::error('请先登录', -4); } protected function showBindMobile() { if (Place::$user['type'] == 2) { Dever::error('您需要绑定手机号才能继续操作', -5); } } protected function showBindEmail() { if (Place::$user['type'] == 2) { Dever::error('您需要绑定邮箱才能继续操作', -6); } } # 获取要更新的数据版本号 public function getUpdate() { return Place::$info['update']; } # 获取要更新的系统版本号 public function getVersion() { return 100; } }