nizongfeng 3 years ago
parent
commit
7b0016d71a
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      application/admin/controller/unishop/Order.php

+ 6
- 1
application/admin/controller/unishop/Order.php View File

@@ -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'],


Loading…
Cancel
Save