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 {