Commit 7dc42355 authored by 董建华's avatar 董建华

增加登出接口服务器异常

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