优化代码
This commit is contained in:
@@ -34,11 +34,11 @@ class ApiAuth {
|
||||
} catch (TokenExpiredException $e) {
|
||||
$this->data['msg'] = $e->getMessage();
|
||||
$this->data['code'] = 2001;
|
||||
return json($this->data)->code($this->data['code']);
|
||||
return json($this->data);
|
||||
} catch (JWTException $e) {
|
||||
$this->data['code'] = 2000;
|
||||
$this->data['msg'] = $e->getMessage();
|
||||
return json($this->data)->code($this->data['code']);
|
||||
return json($this->data);
|
||||
}
|
||||
|
||||
return $next($request);
|
||||
|
||||
Reference in New Issue
Block a user