|
@@ -2388,15 +2388,17 @@ public class ArchivesAutoServiceImpl extends BaseServiceImpl<ArchivesAutoMapper,
|
|
|
*/
|
|
|
private List<String> replaceNetworkUrl(List<String> urlList) {
|
|
|
String sys_isonline = ParamCache.getValue(CommonConstant.SYS_ISONLINE);
|
|
|
+ //正式环境
|
|
|
if (!sys_isonline.equals("20")) {
|
|
|
- for (String url : urlList) {
|
|
|
- url.replace("https://xinan1.zos.ctyun.cn","http://100.86.2.1");
|
|
|
- }
|
|
|
+ return urlList.stream()
|
|
|
+ .map(url -> url.replace("https://xinan1.zos.ctyun.cn", "http://100.86.2.1"))
|
|
|
+ .collect(Collectors.toList());
|
|
|
}
|
|
|
+ //183环境
|
|
|
// else {
|
|
|
-// for (String url : urlList) {
|
|
|
-// url.replace("http://blade-oss-chongqing.oss-cn-shenzhen.aliyuncs.com","http://152.168.2.15");
|
|
|
-// }
|
|
|
+// return urlList.stream()
|
|
|
+// .map(url -> url.replace("http://blade-oss-chongqing.oss-cn-shenzhen.aliyuncs.com", "http://152.168.2.15"))
|
|
|
+// .collect(Collectors.toList());
|
|
|
// }
|
|
|
return urlList;
|
|
|
}
|