diff --git a/app/Controller/Payment/NotifyController.php b/app/Controller/Payment/NotifyController.php index 3c915e4..d07d076 100644 --- a/app/Controller/Payment/NotifyController.php +++ b/app/Controller/Payment/NotifyController.php @@ -75,7 +75,7 @@ class NotifyController extends AbstractController 'payState' => $params['payState'], 'amount' => $params['amount'] ?: 0, ]); - Log::info('paymentNotifyToOut result: ' . '订单[' . $outTradeNo . '][' . $$result . ']'); + Log::info('paymentNotifyToOut result: ' . '订单[' . $outTradeNo . '][' . $result . ']'); return [ 'returnCode' => '0000', @@ -134,7 +134,7 @@ class NotifyController extends AbstractController 'amount' => $params['amount'] ?: 0, 'refundAmount' => $params['refundAmount'] ?: 0, ]); - Log::info('paymentNotifyToOut result: ' . '订单[' . $outRefundNo . '][' . $$result . ']'); + Log::info('paymentNotifyToOut result: ' . '订单[' . $outRefundNo . '][' . $result . ']'); return [ 'returnCode' => '0000', 'returnMsg' => '处理成功' diff --git a/app/Controller/Recharge/RechargeController.php b/app/Controller/Recharge/RechargeController.php index d8847ec..87032b2 100644 --- a/app/Controller/Recharge/RechargeController.php +++ b/app/Controller/Recharge/RechargeController.php @@ -92,7 +92,7 @@ class RechargeController extends AbstractController $outOrderNo = $prePayLog->out_order_no; $nextStep = 'confirm-pay'; $amount = $prePayLog->amount > 0 ? $prePayLog->amount : intval($amount * 100); - $bizData = $this->paymentService->protocolPayPreRequest($this->buildPrepayParams($prePayLog->out_member_id, $outOrderNo, $bankCard->protocol, $amount, $app)); + $bizData = $this->paymentService->protocolPayPreRequest($this->buildPrepayParams($prePayLog->out_member_id, $outOrderNo, $bankCard->protocol, $amount, $prePayLog->notify_url, $app)); } else { $mchOrderNo = StringHelper::generateBankCardOrderNo(); $nextStep = 'confirm-bind'; @@ -151,7 +151,7 @@ class RechargeController extends AbstractController return $params; } - private function buildPrepayParams($outMemberId, $outOrderNo, $protocol, $amount, $app) + private function buildPrepayParams($outMemberId, $outOrderNo, $protocol, $amount, $notifyUrl, $app) { $params = [ 'app_id' => $app->app_id, @@ -162,6 +162,7 @@ class RechargeController extends AbstractController 'outOrderNo' => $outOrderNo, 'protocol' => $protocol, 'payAmount' => $amount, + 'notifyUrl' => $notifyUrl, ]), ]; $sign = \App\Helper\Platform\Signer::sign($params, $app->app_key);