Commit eadf91e3 authored by shiyu's avatar shiyu

设置主图,处理重复图片

parent ca7193c3
......@@ -228,7 +228,7 @@ public class ItemServiceImpl implements ItemService {
try {
CoinVo coinVo = new CoinVo();
EntityMapper.copyAttribute(item, coinVo);
item.setImages(StringUtil.merge(item.getImages(), item.getTopImage()));
coinVo.setImages(StringUtil.merge(item.getImages(), item.getTopImage()));
String extra = item.getExtra();
if (StringUtils.hasLength(extra)) {
Map<String, Object> map = JsonUtils.toMap(extra);
......
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