rabin 7 months ago
parent
commit
8e52ce2a40
2 changed files with 2 additions and 1 deletions
  1. 1 0
      src/Auth.php
  2. 1 1
      src/Company.php

+ 1 - 0
src/Auth.php

@@ -364,6 +364,7 @@ class Auth
         }
 
         if ($user && $user['password'] == $password) {
+            $user = $this->real($user);
             $this->save($user);
 
             $refer = Dever::input('refer');

+ 1 - 1
src/Company.php

@@ -10,7 +10,7 @@ class Company extends Save
     # 获取当前权限
     public function getAuth()
     {
-        $auth = Dever::load('manage/auth')->info();
+        $auth = Dever::load('manage/auth')->data();
         if ($auth && $auth['company']) {
             
             return $auth['company'];