Commit bc210d40 authored by 廖旭伟's avatar 廖旭伟

修改token校验失败错误码

parent 84c64383
......@@ -47,7 +47,7 @@ public class AuthUserInterceptor extends BaseInterceptor {
IUser loginUser = authTokenService.getLoginUser(request);
//loginUser.isManager()
if(ObjectUtils.isEmpty(loginUser)){
ret.put("code", -1);
ret.put("code", 401);
ret.put("msg", "用户未登录或登录失效,请重新登录");
ServletUtils.renderString(response, JSONObject.toJSONString(ret));
return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment