下载逻辑换成内网地址
This commit is contained in:
parent
26dc53ca6a
commit
8a7021d759
@ -507,7 +507,7 @@ public class GoodsServiceImpl implements GoodsService {
|
||||
File dstFile = new File(item.getGoodsId() + ".jpg");
|
||||
File watermarkedFile = new File(item.getGoodsId() + "_" + ImageWatermarkOperatorEnum.WATERMARK.getType() + ".png");
|
||||
try {
|
||||
HttpUtil.downloadFile(item.getUrl(), dstFile);
|
||||
HttpUtil.downloadFile(item.getUrl().replace("oss.zhentuai.com", "frametour-assets.oss-cn-shanghai-internal.aliyuncs.com"), dstFile);
|
||||
} catch (Exception e) {
|
||||
log.error("downloadFile error", e);
|
||||
return;
|
||||
@ -615,7 +615,7 @@ public class GoodsServiceImpl implements GoodsService {
|
||||
File dstFile = new File(item.getGoodsId() + ".jpg");
|
||||
File watermarkedFile = new File(item.getGoodsId() + "_" + type.getType() + ".png");
|
||||
try {
|
||||
HttpUtil.downloadFile(item.getUrl(), dstFile);
|
||||
HttpUtil.downloadFile(item.getUrl().replace("oss.zhentuai.com", "frametour-assets.oss-cn-shanghai-internal.aliyuncs.com"), dstFile);
|
||||
} catch (Exception e) {
|
||||
log.error("downloadFile error", e);
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user