Browse Source

token免检

lizhen 1 tuần trước cách đây
mục cha
commit
3ea8e69347
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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),