正在显示
1 个修改的文件
包含
3 行增加
和
3 行删除
@@ -127,9 +127,9 @@ class Cart extends Model | @@ -127,9 +127,9 @@ class Cart extends Model | ||
127 | $cart = $this->get([ | 127 | $cart = $this->get([ |
128 | 'user_id' => $user['id'], | 128 | 'user_id' => $user['id'], |
129 | 'goods_id' => $data['goods_id'], | 129 | 'goods_id' => $data['goods_id'], |
130 | - 'spec_sku_id' => $data['spec_sku_id'], | ||
131 | - 'goods_style' => $data['goods_style'], | ||
132 | - 'user_size_id' => $data['user_size_id'], | 130 | + 'spec_sku_id' => !empty($data['spec_sku_id']) ? $data['spec_sku_id'] : '', |
131 | + 'goods_style' => !empty($data['goods_style']) ? $data['goods_style'] : '', | ||
132 | + 'user_size_id' => !empty($data['goods_style']) ? $data['goods_style'] : 0, | ||
133 | 'isbuynow' => '0' | 133 | 'isbuynow' => '0' |
134 | ]); | 134 | ]); |
135 | if(!empty($cart)){ | 135 | if(!empty($cart)){ |
-
请 注册 或 登录 后发表评论