作者 何书鹏
1 个管道 的构建 通过 耗费 1 秒

退款异步

... ... @@ -100,7 +100,7 @@ class Wechat extends Controller
$result = $payment->refund->byOutTradeNumber($refundLog['order_sn'], $refundLog['refund_sn'], $refundLog['pay_fee'] * 100, $refundLog['refund_fee'] * 100, [
// 可在此处传入其他参数,详细参数见微信支付文档
'refund_desc' => $refund_desc,
'notify_url' => request()->domain() . url('/index/notify/notifyr')
'notify_url' => request()->domain() . url('/index/notify/notifyr'),
]);
\think\Log::write('refund-result' . json_encode($result));
... ...