Commit 1d5b2540 authored by 董建华's avatar 董建华

增加登出接口异常返回

parent e9b8078f
...@@ -473,9 +473,15 @@ public class UserController implements IBaseController { ...@@ -473,9 +473,15 @@ public class UserController implements IBaseController {
String token = request.getHeader("x-auth-token"); String token = request.getHeader("x-auth-token");
if (null == token || "".equals(token)) { if (null == token || "".equals(token)) {
return JsonResult.buildErrorStateResult("token缺失", null); return JsonResult.buildErrorStateResult("系统异常,请稍后再试", null);
}
try {
userService.logout(token);
} catch (Exception e) {
log.error("登出接口系统异常token:{}", token);
return JsonResult.buildErrorStateResult("系统异常,请稍后再试", null);
} }
userService.logout(token);
return JsonResult.buildSuccessResult("登出成功"); return JsonResult.buildSuccessResult("登出成功");
} }
......
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