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

异步地址优化

... ... @@ -40,7 +40,7 @@ class Wechat extends Controller
'total_fee' => $order_price * 100,
'trade_type' => 'JSAPI', // 请对应换成你的支付方式对应的值类型
'openid' => $openid,
'notify_url' => request()->domain() . url('/index/notify/notify'),
'notify_url' => request()->domain() . '/index/notify/notify',
]);
if ($result['return_code'] == 'SUCCESS' && $result['result_code'] == 'SUCCESS') {
... ... @@ -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() . '/index/notify/notifyr',
]);
\think\Log::write('refund-result' . json_encode($result));
... ...