|
|
@ -185,8 +185,6 @@ class OrderService implements OrderServiceInterface |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
var_dump('ordergoods', $orderGoods); |
|
|
|
|
|
$totalAmount = $orderMain->total_money; // 订单可退款金额,总订单金额不含配送费和服务费
|
|
|
$totalAmount = $orderMain->total_money; // 订单可退款金额,总订单金额不含配送费和服务费
|
|
|
$preRefundAmount = 0; // 预退款金额
|
|
|
$preRefundAmount = 0; // 预退款金额
|
|
|
$refundAmount = 0; // 实际退款金额
|
|
|
$refundAmount = 0; // 实际退款金额
|
|
|
@ -216,9 +214,6 @@ class OrderService implements OrderServiceInterface |
|
|
]); |
|
|
]); |
|
|
throw new ErrorCodeException(ErrorCode::ORDER_REFUND_FAIL); |
|
|
throw new ErrorCodeException(ErrorCode::ORDER_REFUND_FAIL); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
var_dump($orderMain->money, $preRefundAmount, $refundAmount); |
|
|
|
|
|
|
|
|
|
|
|
// 开始退款
|
|
|
// 开始退款
|
|
|
$config = config('wxpay'); |
|
|
$config = config('wxpay'); |
|
|
$app = Factory::payment($config); |
|
|
$app = Factory::payment($config); |
|
|
|