From 5812fa99acdf1f4ff0d718fa33501f5438107c81 Mon Sep 17 00:00:00 2001 From: wangxiaowei Date: Mon, 23 Dec 2024 14:12:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E6=B7=BB=E5=8A=A0=E6=98=AF?= =?UTF-8?q?=E5=90=A6=E6=98=AF=E6=96=B0=E5=93=81=E9=80=89=E6=8B=A9=E7=8A=B6?= =?UTF-8?q?=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/shop/logic/goods/GoodsLogic.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/shop/logic/goods/GoodsLogic.php b/app/shop/logic/goods/GoodsLogic.php index 1e5edae9..af6f1aa0 100755 --- a/app/shop/logic/goods/GoodsLogic.php +++ b/app/shop/logic/goods/GoodsLogic.php @@ -417,6 +417,7 @@ class GoodsLogic extends Logic //更新主表 $data = [ 'name' => $post['name'], + 'is_new_goods' => isset($post['is_new_goods']) && $post['is_new_goods'] == 'on' ? 1 : 0, 'code' => $post['code'], 'shop_cate_id' => $post['shop_cate_id'], 'first_cate_id' => $post['first_cate_id'], @@ -955,6 +956,7 @@ class GoodsLogic extends Logic $data = [ 'type' => $post['type'], 'name' => trim($post['name']), + 'is_new_goods' => isset($post['is_new_goods']) && $post['is_new_goods'] == 'on' ? 1 : 0, 'code' => trim($post['code']) ? trim($post['code']) : create_goods_code($shop_id), 'shop_id' => $shop_id, 'shop_cate_id' => $post['shop_cate_id'],