@@ -103,6 +103,9 @@ class Core
# 检查是否可以查看
protected function checkView()
{
+ if (!$this->uid) {
+ return false;
+ }
if (!$this->info) {
$this->checkInfo();
}
@@ -10,6 +10,9 @@ class Api extends Core
public function __construct()
parent::__construct();
+ if ($this->uid <= 0) {
+ Dever::alert('请先登录');
# 获取用户基本信息