Commit 2dbed9ac authored by christ's avatar christ

pc

parent 996888c0
...@@ -218,6 +218,13 @@ class RefundServiceModel extends \Business\AbstractModel ...@@ -218,6 +218,13 @@ class RefundServiceModel extends \Business\AbstractModel
$refund_array['seller_state'] =$sellerState;//卖家处理状态:1为待审核,2为同意,3为不同意 $refund_array['seller_state'] =$sellerState;//卖家处理状态:1为待审核,2为同意,3为不同意
$refund_array['seller_message'] =$sellerMessage; $refund_array['seller_message'] =$sellerMessage;
//如果卖家不同意退款回写is_refund //如果卖家不同意退款回写is_refund
if($return['refund_type']==ApiConst::refundTypeGoods && !$isGiveUp){
$waitRefundReceiveCount=ApiConst::one;
$refundCount=ApiConst::zero;
}else{
$waitRefundReceiveCount=ApiConst::zero;
$refundCount=ApiConst::reduceOne;
}
if ($refund_array['seller_state'] != '2'){ if ($refund_array['seller_state'] != '2'){
$orderGoodsUpdateData['is_refund']=ApiConst::zero; $orderGoodsUpdateData['is_refund']=ApiConst::zero;
$orderGoodsUpdateData['refund_state_name']=DescribeConst::sellerRefuseReturn; $orderGoodsUpdateData['refund_state_name']=DescribeConst::sellerRefuseReturn;
...@@ -227,13 +234,7 @@ class RefundServiceModel extends \Business\AbstractModel ...@@ -227,13 +234,7 @@ class RefundServiceModel extends \Business\AbstractModel
if(!$result){ if(!$result){
ErrorModel::throwException(CodeConfigModel::updateIsRefundFail); ErrorModel::throwException(CodeConfigModel::updateIsRefundFail);
} }
if($return['refund_type']==ApiConst::refundTypeGoods && !$isGiveUp){
$waitRefundReceiveCount=ApiConst::one;
$refundCount=ApiConst::zero;
}else{
$waitRefundReceiveCount=ApiConst::zero;
$refundCount=ApiConst::reduceOne;
}
$push=\Our\Push::getInstance(); $push=\Our\Push::getInstance();
$pushData=array('storeId'=>$order_info['storeId'], $pushData=array('storeId'=>$order_info['storeId'],
'type'=>ApiConst::messageRefund, 'type'=>ApiConst::messageRefund,
...@@ -285,8 +286,8 @@ class RefundServiceModel extends \Business\AbstractModel ...@@ -285,8 +286,8 @@ class RefundServiceModel extends \Business\AbstractModel
'waitGetCount'=>ApiConst::zero, 'waitGetCount'=>ApiConst::zero,
'orderCount'=>ApiConst::zero, 'orderCount'=>ApiConst::zero,
'waitRefundProccessCount'=>ApiConst::reduceOne, 'waitRefundProccessCount'=>ApiConst::reduceOne,
'waitRefundReceiveCount'=>zero, 'waitRefundReceiveCount'=>$waitRefundReceiveCount,
'refundCount'=>ApiConst::reduceOne, 'refundCount'=>$refundCount,
'alertCount'=>ApiConst::zero, 'alertCount'=>ApiConst::zero,
'params'=>array('c'=>'shopkeeper', 'params'=>array('c'=>'shopkeeper',
'm'=>'orderDetail', 'm'=>'orderDetail',
......
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