Authored by wujiexiang

调用erp-gateway清理缓存

@@ -207,7 +207,7 @@ public class BuyerOrderChangeBusinessPostProcessor { @@ -207,7 +207,7 @@ public class BuyerOrderChangeBusinessPostProcessor {
207 logger.info("[{}] notify resource to clear user cache", uid); 207 logger.info("[{}] notify resource to clear user cache", uid);
208 try { 208 try {
209 209
210 - String url = baseServiceCaller.getYohoGatewayUrl() + "?method=app.resources.clearUserCache&client_type=h5&uid=" + uid; 210 + String url = baseServiceCaller.getErpGatewayUrl() + "/erp/resources/user/clearCache/?uid=" + uid;
211 baseServiceCaller.proxyPost("app.resources.clearUserCache", url, null); 211 baseServiceCaller.proxyPost("app.resources.clearUserCache", url, null);
212 } catch (Exception ex) { 212 } catch (Exception ex) {
213 logger.error("clear user cache for resource,uid:{}", uid, ex); 213 logger.error("clear user cache for resource,uid:{}", uid, ex);
@@ -29,17 +29,10 @@ public class BaseServiceCaller { @@ -29,17 +29,10 @@ public class BaseServiceCaller {
29 @Value("${erp-gateway.url}") 29 @Value("${erp-gateway.url}")
30 private String erpGatewayUrl; 30 private String erpGatewayUrl;
31 31
32 - @Value("${yoho.gateway.url:http://service.yoho.yohoops.org}")  
33 - private String yohoGatewayUrl;  
34 -  
35 public String getErpGatewayUrl() { 32 public String getErpGatewayUrl() {
36 return erpGatewayUrl; 33 return erpGatewayUrl;
37 } 34 }
38 35
39 - public String getYohoGatewayUrl() {  
40 - return yohoGatewayUrl;  
41 - }  
42 -  
43 public ApiResponse proxyPost(String serviceName, String url, Object object) { 36 public ApiResponse proxyPost(String serviceName, String url, Object object) {
44 return doPost(serviceName, url, object); 37 return doPost(serviceName, url, object);
45 } 38 }