dever 3 年之前
父节点
当前提交
e633c2d0d6
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      main/lib/Core.php

+ 3 - 1
main/lib/Core.php

@@ -13,7 +13,9 @@ class Core
     public function __construct()
     {
         $this->uid = Dever::load('passport/user')->check(false);
-        $this->uid = 1;
+        if (!$this->uid) {
+            $this->uid = 1;
+        }
         if ($this->uid) {
             $this->user = Dever::load('passport/api')->info($this->uid);
         } else {