dever 3 năm trước cách đây
mục cha
commit
e633c2d0d6
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      main/lib/Core.php

+ 3 - 1
main/lib/Core.php

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