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