feat(order): 移除商品规格字段

This commit is contained in:
mkm 2024-08-26 10:50:42 +08:00
parent 17d22565d2
commit bd9a7c5e14
3 changed files with 0 additions and 4 deletions

View File

@ -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,
]);

View File

@ -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;

View File

@ -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' => '商品规格',
];