Commit a70d43a4 authored by christ's avatar christ

refund

parent 4bc49986
......@@ -424,7 +424,8 @@ class RefundServiceModel extends \Business\AbstractModel
//获取订单
$order_id = $refund['order_id'];
$order_info = $orderDao->find( array('order_id'=>$order_id));
if(($order_info['order_amount']-$order_info['refund_amount'])<$refundAmount){
if(($order_info['order_amount']-$order_info['refund_amount']+$refundAmount)<$refundAmount){
ErrorModel::throwException(CodeConfigModel::beyongRefundAmount);
}
if($refund['refund_type']==ApiConst::refundTypeGoods){
......
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