Commit fb672903 authored by Java-刘 彧阳's avatar Java-刘 彧阳

用户注销的时候,去函谷关触发清除缓存

parent a4a974f7
......@@ -91,6 +91,9 @@ public class InnerController implements IBaseController {
@Value("${xyqb.user.query.url}")
private String queryUrl;
@Value("${xyqb.auth.url}")
private String hanguguanUrl;
private static final ObjectMapper MAPPER = new ObjectMapper();
static {
......@@ -491,6 +494,8 @@ public class InnerController implements IBaseController {
if (!user.getEnable()) {
sessionService.deleteByUserId(userId);
}
LOGGER.info("去清除函谷关的缓存");
httpService.get(hanguguanUrl.concat("/innerapi/disableUserCache"),ImmutableMap.of("phone",user.getPhoneNo()));
return JsonResult.buildSuccessResult("用户已禁用.", user.getEnable() == 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