feat(order): 移除商品规格字段
This commit is contained in:
parent
17d22565d2
commit
bd9a7c5e14
@ -51,7 +51,6 @@ class CartLogic extends BaseLogic
|
||||
'product_id' => $params['product_id'],
|
||||
'store_id' => $params['store_id'] ?? 0,
|
||||
'staff_id' => $params['staff_id'] ?? 0,
|
||||
'product_attr_unique' => '',
|
||||
'cart_num' => $params['cart_num'],
|
||||
'is_new' => $params['is_new'] ?? 0,
|
||||
]);
|
||||
|
@ -481,7 +481,6 @@ class OrderLogic extends BaseLogic
|
||||
$data = [];
|
||||
foreach ($arr as $k => $v) {
|
||||
$data[$k]['product_id'] = $v['product_id'];
|
||||
$data[$k]['product_attr_unique'] = '';
|
||||
$data[$k]['cart_num'] = $v['cart_num'];
|
||||
$data[$k]['type'] = '';
|
||||
$data[$k]['uid'] = Request()->userId;
|
||||
|
@ -20,7 +20,6 @@ class CartValidate extends BaseValidate
|
||||
*/
|
||||
protected $rule = [
|
||||
'cart_num' => 'require',
|
||||
'product_attr_unique' => 'require',
|
||||
'store_id' => 'require|number',
|
||||
'staff_id' => 'require|number',
|
||||
'product_id' => 'require|number',
|
||||
@ -36,7 +35,6 @@ class CartValidate extends BaseValidate
|
||||
'store_id' => '店铺id',
|
||||
'staff_id' => '员工id',
|
||||
'product_id' => '商品id',
|
||||
'product_attr_unique' => '商品规格',
|
||||
];
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user