feat: bug-662 产品中心客户端,页面刷新及打开产品详情页面报错

This commit is contained in:
曹鹏飞 2025-09-08 17:29:13 +08:00
parent e59b3f7b0a
commit 235f6b4543
1 changed files with 1 additions and 0 deletions

View File

@ -159,6 +159,7 @@ public class ProductModelHotimageServiceImpl extends ServiceImpl<ProductModelHot
.eq(ProductModelHotimage::getModelId, modelId)
.eq(ProductModelHotimage::getState, PublishState.Published.getState())
.one();
if (Objects.isNull(info)) return null;
JSONArray jsonArray = JSONUtil.parseArray(info.getData());
List<JSONObject> jsonObjects = new ArrayList<>();
if (CollectionUtil.isNotEmpty(jsonArray)) {