|
|
@@ -797,7 +797,12 @@ class Order extends Backend |
|
|
|
$refund_fee = $sborder->price*$sborder->number; |
|
|
|
//修改退款金额 |
|
|
|
$orderModel = new \app\admin\model\unishop\Order(); |
|
|
|
$orderModel->where(["id"=>$order['id']])->setInc("refund_fee",$refund_fee); |
|
|
|
if ($order['refund_fee'] == null) { |
|
|
|
$orderModel->save(["refund_fee"=>$refund_fee],["id"=>$order['id']]); |
|
|
|
}else{ |
|
|
|
$orderModel->where(["id"=>$order['id']])->setInc("refund_fee",$refund_fee); |
|
|
|
} |
|
|
|
|
|
|
|
//退款 |
|
|
|
$param = [ |
|
|
|
"order_id"=>$order['out_trade_no'], |
|
|
|