Browse Source

fix: 优软快讯接口使用外网接口调用

suntg 7 years ago
parent
commit
5a6b436df0

+ 1 - 5
src/main/java/com/uas/platform/b2c/core/config/MicroServicesConf.java

@@ -77,11 +77,7 @@ public class MicroServicesConf {
 	}
 
 	public String getRequestUrlForNews(String requestUrl) {
-		if ("prod".equals(profile)){
-			return String.format("http://%s%s", this.newsMicroServiceIp, requestUrl);
-		}else {
-			return String.format("http://%s:%d%s", this.microServiceIp, 80, requestUrl);
-		}
+		return String.format("http://%s%s", this.newsMicroServiceIp, requestUrl);
 	}
 
 	public String getRequestUrlForFloor(int port, String requestUrl) {