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'],