efps-version
elf 1 year ago
parent b5121c0e25
commit 3f4e3c67f0

@ -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' => '处理成功'

@ -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);

Loading…
Cancel
Save