From 51f35c309fde49b9f41731a6ff6799d6a5bcdea0 Mon Sep 17 00:00:00 2001
From: liqianjin <949671634@qq.com>
Date: Mon, 31 Mar 2025 15:41:18 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=85=B3=E8=81=94=E5=95=86?=
=?UTF-8?q?=E5=93=81=E6=97=A0=E6=B3=95=E4=BF=AE=E6=94=B9=E7=9A=84bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/model/goods/Goods.php | 3 +++
app/shop/view/goods/add_goods.html | 8 +++++++-
app/shop/view/goods/edit_goods.html | 6 ++++++
3 files changed, 16 insertions(+), 1 deletion(-)
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"}
+
+