Commit f23c1260 authored by shiyu's avatar shiyu

商品原始图片设置为主图,不过滤原始图片

parent 3f579804
......@@ -228,7 +228,6 @@ public class ItemServiceImpl implements ItemService {
try {
CoinVo coinVo = new CoinVo();
EntityMapper.copyAttribute(item, coinVo);
coinVo.setImages(StringUtil.merge(item.getImages(), item.getTopImage()));
String extra = item.getExtra();
if (StringUtils.hasLength(extra)) {
Map<String, Object> map = JsonUtils.toMap(extra);
......
......@@ -148,7 +148,6 @@ public class QiniuStorage implements Storage {
keyName = keyName + "_" + image.getWidth() + "x" + image.getHeight() + BASE64_IMG_SUFFIX;
store(imageByte, keyName);
String url =generateUrl(keyName);
System.out.println("url = " + url);
return keyName;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment