作者 何书鹏
1 个管道 的构建 通过 耗费 0 秒

1

@@ -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)){