Commit 44d1902a authored by christ's avatar christ

退款退货

parent caa44875
......@@ -956,7 +956,7 @@ class RefundServiceModel extends \Business\AbstractModel
}
}
} else {
$refundAmount = $orderGoods['goodsPrice'];
$refundAmount = $orderGoods['goodsPrice']*$orderGoods['goodsNum'];
}
$returnData['refundAmount'] = $refundAmount - $orderInfo['refundAmount'] - $returnData['needShippingFee'] + $shippingFee;
// if($orderGoods['goodsType']==ApiConst::goodsTypeFour){
......
......@@ -156,13 +156,15 @@ class OrderGoodsModel extends \DAO\AbstractModel {
}
//获得已经退款退货的商品id
public function getRefundOrderGoodsIds($orderGoods){
$newOrderGoods=array();
$orderGoods=array_values($orderGoods);
for($i=ApiConst::zero;$i<count($orderGoods);$i++){
if($orderGoods[$i]['refundId']!=ApiConst::zero){
unset($orderGoods[$i]);
array_push($newOrderGoods,$orderGoods);
// unset($orderGoods[$i]);
}
}
return array_column($orderGoods,'goodsId');
return array_column($newOrderGoods,'goodsId');
}
/**
* 根据订单id 获得订单商品记录
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment