Authored by zhangxiaoru

厂家颜色

... ... @@ -496,7 +496,7 @@ class CartModel
$oneGoods['id'] = $single['product_sku'];
$oneGoods['thumb'] = Images::getImageUrl($single['goods_images'], 120, 160);
$oneGoods['name'] = $single['product_name'];
$oneGoods['color'] = !isset($single['factory_goods_name']) ? $single['color_name'] : $single['factory_goods_name'];
$oneGoods['color'] = isset($single['factory_goods_name']) ? $single['factory_goods_name'] : $single['color_name'];
$oneGoods['size'] = $single['size_name'];
$oneGoods['count'] = $single['buy_number'];
$oneGoods['price'] = Helpers::transPrice($single['last_price']);
... ... @@ -934,7 +934,7 @@ class CartModel
$oneColor = array();
$oneColor['id'] = $val['color_id'];
$oneColor['skcId'] = $val['product_skc'];
$oneColor['name'] = !isset($val['factory_goods_name']) ? $val['color_name'] : $val['factory_goods_name'];
$oneColor['name'] = isset($val['factory_goods_name']) ? $val['factory_goods_name'] : $val['color_name'];
$oneColor['goodsName'] = $productData['product_name'];
$oneColor['colorNum'] = $colorNum;
$colorList[] = $oneColor;
... ...