diff --git a/app/model/goods/Goods.php b/app/model/goods/Goods.php index e92d5a1..8a9e321 100644 --- a/app/model/goods/Goods.php +++ b/app/model/goods/Goods.php @@ -278,6 +278,9 @@ class Goods extends BaseModel 'barrage_show' => $data['barrage_show'], 'support_trade_type' => $data['support_trade_type'] ?? '', 'is_zmxx' => $data['is_zmxx'] ?? 0, + 'is_correlation' => $data['is_correlation'] ?? 0, + 'correlation_type' => $data['is_correlation'] ?? 1, + 'correlation_goods_ids' => json_encode($data['correlation_goods_ids'] ? explode(',',$data['correlation_goods_ids']) : []) ); $common_data = array( 'goods_name' => $data['goods_name'], diff --git a/app/shop/view/goods/add_goods.html b/app/shop/view/goods/add_goods.html index 60cb17e..0ffc48c 100644 --- a/app/shop/view/goods/add_goods.html +++ b/app/shop/view/goods/add_goods.html @@ -1100,6 +1100,12 @@ {{# } }} + + {/block} {block name="script"} {/block} {block name="script"} + +