作者 jiawen
1 个管道 的构建 通过 耗费 0 秒

优化token失效处理

@@ -123,6 +123,8 @@ class RestBaseController @@ -123,6 +123,8 @@ class RestBaseController
123 $this->user = $user; 123 $this->user = $user;
124 $this->userId = $user['id']; 124 $this->userId = $user['id'];
125 $this->userType = $user['user_type']; 125 $this->userType = $user['user_type'];
  126 + } else {
  127 + $this->error(['code'=>'40001','msg'=>'token失效']);
126 } 128 }
127 129
128 } 130 }