rabin hace 1 año
padre
commit
8e52ce2a40
Se han modificado 2 ficheros con 2 adiciones y 1 borrados
  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) {
         if ($user && $user['password'] == $password) {
+            $user = $this->real($user);
             $this->save($user);
             $this->save($user);
 
 
             $refer = Dever::input('refer');
             $refer = Dever::input('refer');

+ 1 - 1
src/Company.php

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