|
@@ -178,7 +178,7 @@ class Goods extends BaseShop
|
|
|
$price1 = input("price1",0);
|
|
|
$pay_num2 = input("pay_num2",0);
|
|
|
$price2 =input("price2",0);
|
|
|
- $pay_num3 = input("pay_num3",3);
|
|
|
+ $pay_num3 = input("pay_num3",0);
|
|
|
$price3 = input("price3",0);
|
|
|
|
|
|
//单规格需要
|
|
@@ -225,7 +225,12 @@ class Goods extends BaseShop
|
|
|
'video_url' => $video_url,
|
|
|
'goods_sku_data' => $goods_sku_data,
|
|
|
'goods_shop_category_ids' => $goods_shop_category_ids,
|
|
|
- 'supplier_id' => $supplier_id
|
|
|
+ 'pay_num1' => $pay_num1,
|
|
|
+ 'price1' => $price1,
|
|
|
+ 'pay_num2' => $pay_num2,
|
|
|
+ 'price2' => $price2,
|
|
|
+ 'pay_num3' => $pay_num3,
|
|
|
+ 'price3' => $price3,
|
|
|
];
|
|
|
|
|
|
|
|
@@ -320,6 +325,12 @@ class Goods extends BaseShop
|
|
|
$video_url = input("video_url", "");// 视频
|
|
|
$goods_sku_data = input("goods_sku_data", "");// SKU商品数据
|
|
|
$supplier_id = input("supplier_id", "");// 供应商id
|
|
|
+ $pay_num1 = input("pay_num1",0);
|
|
|
+ $price1 = input("price1",0);
|
|
|
+ $pay_num2 = input("pay_num2",0);
|
|
|
+ $price2 =input("price2",0);
|
|
|
+ $pay_num3 = input("pay_num3",0);
|
|
|
+ $price3 = input("price3",0);
|
|
|
|
|
|
//单规格需要
|
|
|
$price = input("price", 0);// 商品价格(取第一个sku)
|
|
@@ -365,7 +376,13 @@ class Goods extends BaseShop
|
|
|
'video_url' => $video_url,
|
|
|
'goods_sku_data' => $goods_sku_data,
|
|
|
'goods_shop_category_ids' => $goods_shop_category_ids,
|
|
|
- 'supplier_id' => $supplier_id
|
|
|
+ 'supplier_id' => $supplier_id,
|
|
|
+ 'pay_num1' => $pay_num1,
|
|
|
+ 'price1' => $price1,
|
|
|
+ 'pay_num2' => $pay_num2,
|
|
|
+ 'price2' => $price2,
|
|
|
+ 'pay_num3' => $pay_num3,
|
|
|
+ 'price3' => $price3,
|
|
|
];
|
|
|
$res = $goods_model->editGoods($data);
|
|
|
return $res;
|