[Issue B] GetGoodsViewData 单模板模式导致多模板商品数据损坏 #16
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
概述
GetGoodsViewData 只取 vrGoodsConfig 的第一个配置块,多模板商品编辑时:
根因
SeatSkuService.php 第 368 行:$config = $vrGoodsConfig[0](只取第一个)
第 386-388 行写回时:只写 [config](单元素),而非全部有效配置
修复方案
修改:遍历所有配置块,清理无效块后再处理
SeatSkuService.php GetGoodsViewData 方法内:
参考资料