Authored by wujiexiang

调用erp-gateway清理缓存

... ... @@ -207,7 +207,7 @@ public class BuyerOrderChangeBusinessPostProcessor {
logger.info("[{}] notify resource to clear user cache", uid);
try {
String url = baseServiceCaller.getYohoGatewayUrl() + "?method=app.resources.clearUserCache&client_type=h5&uid=" + uid;
String url = baseServiceCaller.getErpGatewayUrl() + "/erp/resources/user/clearCache/?uid=" + uid;
baseServiceCaller.proxyPost("app.resources.clearUserCache", url, null);
} catch (Exception ex) {
logger.error("clear user cache for resource,uid:{}", uid, ex);
... ...
... ... @@ -29,17 +29,10 @@ public class BaseServiceCaller {
@Value("${erp-gateway.url}")
private String erpGatewayUrl;
@Value("${yoho.gateway.url:http://service.yoho.yohoops.org}")
private String yohoGatewayUrl;
public String getErpGatewayUrl() {
return erpGatewayUrl;
}
public String getYohoGatewayUrl() {
return yohoGatewayUrl;
}
public ApiResponse proxyPost(String serviceName, String url, Object object) {
return doPost(serviceName, url, object);
}
... ...