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

+ 1 - 1
main/lib/Core.php

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