Commit 054c3aa8 authored by christ's avatar christ

消息问题

parent 7739913a
...@@ -334,8 +334,10 @@ class ShopkeeperServiceModel extends \Business\AbstractModel ...@@ -334,8 +334,10 @@ class ShopkeeperServiceModel extends \Business\AbstractModel
$value['orderGoods'] = array(); $value['orderGoods'] = array();
} }
if ($this->clientType && $this->clientType == NameConst::pcClient) { if ($this->clientType && $this->clientType == NameConst::pcClient) {
$value['couponAmount'] = ($value['goodsAmount'] + $value['shippingFee']) - $value['orderAmount'];//优惠券金额 $extent=$orderDao->getClienOrderCommon($value['orderId']);
$value['receiveAmount'] = $value['goodsAmount']+$value['shippingFee'] - $value['couponAmount']; $value=array_merge($value,$extent);
// $value['couponAmount'] = ($value['goodsAmount'] + $value['shippingFee']) - $value['orderAmount'];//优惠券金额
// $value['receiveAmount'] = $value['goodsAmount']+$value['shippingFee'] - $value['couponAmount'];
// $value['orderAmount'] = $value['orderAmount']; // $value['orderAmount'] = $value['orderAmount'];
$value['reciverInfo'] = unserialize($value['reciverInfo']); $value['reciverInfo'] = unserialize($value['reciverInfo']);
$value['reciverInfo'] =$orderCommonDao->getReciverInfo( $value['reciverInfo'] ); $value['reciverInfo'] =$orderCommonDao->getReciverInfo( $value['reciverInfo'] );
......
...@@ -1129,6 +1129,9 @@ class OrderModel extends \DAO\AbstractModel ...@@ -1129,6 +1129,9 @@ class OrderModel extends \DAO\AbstractModel
public function getClienOrderCommon($order){ public function getClienOrderCommon($order){
$returnData=array(); $returnData=array();
$returnData['couponAmount'] = ($order['goodsAmount'] + $order['shippingFee']) - $order['orderAmount'];//优惠券金额 $returnData['couponAmount'] = ($order['goodsAmount'] + $order['shippingFee']) - $order['orderAmount'];//优惠券金额
if($returnData['couponAmount']<ApiConst::zero){
$returnData['couponAmount']=ApiConst::zero;
}
$returnData['orderAmount'] = $order['orderAmount'] ; $returnData['orderAmount'] = $order['orderAmount'] ;
$returnData['goodsAmount']=$order['goodsAmount']; $returnData['goodsAmount']=$order['goodsAmount'];
$returnData['shippingFee']=$order['shippingFee']; $returnData['shippingFee']=$order['shippingFee'];
......
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