lgy 6 일 전
부모
커밋
478add1b83
2개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 0 1
      jcjyhr/app/admin/library/Auth.php
  2. 3 1
      jcjyhr/vendor/topthink/think-orm/src/db/BaseQuery.php

+ 0 - 1
jcjyhr/app/admin/library/Auth.php

@@ -182,7 +182,6 @@ class Auth extends \ba\Auth
             $this->setError('Please try again after 1 day');
             return false;
         }
-        var_dump($this->model->PASSWORD);die;
         if ($this->model->password != encrypt_password($password, $this->model->salt)) {
             $this->loginFailed();
             $this->setError('Password is incorrect');

+ 3 - 1
jcjyhr/vendor/topthink/think-orm/src/db/BaseQuery.php

@@ -1372,7 +1372,9 @@ abstract class BaseQuery
         } else {
             $this->result($result);
         }
-
+        foreach ($result as $key => $value) {
+            $result[strtolower($key)] = $value;
+        }
         return $result;
     }