修复图片空内容无默认问题
This commit is contained in:
parent
e59fa56784
commit
dcaf638b58
@ -492,6 +492,9 @@ public class ShopProductBaseServiceImpl extends BaseServiceImpl<ShopProductBaseM
|
||||
item.setIs_open_automatic(is_open_automatic);
|
||||
Integer item_is_default = Convert.toInt(productItemMap.get("item_is_default"));
|
||||
String item_image_default = Convert.toStr(productItemMap.get("main_color_img"), default_image); // 主图
|
||||
if(com.suisung.mall.common.utils.StringUtils.isEmpty(item_image_default)){
|
||||
item_image_default=default_image;
|
||||
}
|
||||
List<String> item_image_other = Convert.toList(String.class, productItemMap.get("color_img"));
|
||||
String _str_item_spec = (String) productItemMap.get("product_spec");
|
||||
JSONArray _item_spec = StrUtil.isNotBlank(_str_item_spec) ? JSONObject.parseArray(_str_item_spec) : null;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user