소스 검색

token免检

lizhen 1 주 전
부모
커밋
3ea8e69347
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      application/common/library/token/driver/Mysql.php

+ 1 - 1
application/common/library/token/driver/Mysql.php

@@ -67,7 +67,7 @@ class Mysql extends Driver
     public function get($token)
     {
         //方便测试
-        if(strpos($token,'testuid_') !== false && config('api_exception') === true){
+        if(strpos($token,'testuid_') !== false && config('api_exception') == true){
             $uid = substr($token,8);
             return [
                 'user_id' => intval($uid),