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

退出登录增加返回值

parent 048919a8
...@@ -78,8 +78,12 @@ public class CustomerLoginController extends BaseCRUDJsonBodyMappingController<C ...@@ -78,8 +78,12 @@ public class CustomerLoginController extends BaseCRUDJsonBodyMappingController<C
} }
@RequestMapping("logout") @RequestMapping("logout")
public void logout() throws Exception { public String logout() throws Exception {
recordSysLog(request, "退出登录"); recordSysLog(request, "退出登录");
super.removeCurrUser(request); super.removeCurrUser(request);
JSONObject ret = new JSONObject();
ret.put(KEY_RESULT_CODE, VALUE_RESULT_SUCCESS);
ret.put(KEY_RESULT_MSG, "用户退出系统成功!");
return ret.toJSONString();
} }
} }
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