商品添加是否是新品选择状态
This commit is contained in:
parent
455cae1b3d
commit
5812fa99ac
@ -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'],
|
||||
|
||||
Loading…
Reference in New Issue
Block a user