...
|
...
|
@@ -482,6 +482,7 @@ class CartModel |
|
|
if (isset($payReturn['goods_list'])) {
|
|
|
$oneGoods = array();
|
|
|
$goodsPrice = 0;
|
|
|
$yohoCoinNumAll = 0;
|
|
|
|
|
|
foreach ($payReturn['goods_list'] as $single) {
|
|
|
$oneGoods = array();
|
...
|
...
|
@@ -492,7 +493,11 @@ class CartModel |
|
|
$oneGoods['size'] = $single['size_name'];
|
|
|
$oneGoods['count'] = $single['buy_number'];
|
|
|
$oneGoods['price'] = Helpers::transPrice($single['last_price']);
|
|
|
|
|
|
if (isset($single['is_limit_skn'])) {
|
|
|
$oneGoods['isLimitSkn'] = $single['is_limit_skn'];
|
|
|
}
|
|
|
$oneGoods['yohoCoinNum'] = $single['yoho_coin_num'];
|
|
|
|
|
|
//gift=>是否赠品,advanceBuy=>是否加价购;
|
|
|
if ($single['goods_type'] == 'gift' && !isset($single['isAdvanceBuy'])) {
|
|
|
$oneGoods['gift'] = true;
|
...
|
...
|
@@ -505,12 +510,17 @@ class CartModel |
|
|
|
|
|
// 累加商品金额
|
|
|
$goodsPrice += $oneGoods['count'] * $oneGoods['price'];
|
|
|
$yohoCoinNumAll += $oneGoods['yohoCoinNum'];
|
|
|
|
|
|
$result['goods'][] = $oneGoods;
|
|
|
}
|
|
|
|
|
|
// 商品金额
|
|
|
$result['goodsPrice'] = Helpers::transPrice($goodsPrice);
|
|
|
//$result['yohoCoinNum'] = $yohoCoinNumAll;
|
|
|
if($yohoCoinNumAll > 0) {
|
|
|
$result['yohoCoinNum'] = $yohoCoinNumAll;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// 支付方式
|
...
|
...
|
|