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

@ -75,7 +75,7 @@ class NotifyController extends AbstractController
'payState' => $params['payState'], 'payState' => $params['payState'],
'amount' => $params['amount'] ?: 0, 'amount' => $params['amount'] ?: 0,
]); ]);
Log::info('paymentNotifyToOut result: ' . '订单[' . $outTradeNo . '][' . $$result . ']'); Log::info('paymentNotifyToOut result: ' . '订单[' . $outTradeNo . '][' . $result . ']');
return [ return [
'returnCode' => '0000', 'returnCode' => '0000',
@ -134,7 +134,7 @@ class NotifyController extends AbstractController
'amount' => $params['amount'] ?: 0, 'amount' => $params['amount'] ?: 0,
'refundAmount' => $params['refundAmount'] ?: 0, 'refundAmount' => $params['refundAmount'] ?: 0,
]); ]);
Log::info('paymentNotifyToOut result: ' . '订单[' . $outRefundNo . '][' . $$result . ']'); Log::info('paymentNotifyToOut result: ' . '订单[' . $outRefundNo . '][' . $result . ']');
return [ return [
'returnCode' => '0000', 'returnCode' => '0000',
'returnMsg' => '处理成功' 'returnMsg' => '处理成功'

@ -92,7 +92,7 @@ class RechargeController extends AbstractController
$outOrderNo = $prePayLog->out_order_no; $outOrderNo = $prePayLog->out_order_no;
$nextStep = 'confirm-pay'; $nextStep = 'confirm-pay';
$amount = $prePayLog->amount > 0 ? $prePayLog->amount : intval($amount * 100); $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 { } else {
$mchOrderNo = StringHelper::generateBankCardOrderNo(); $mchOrderNo = StringHelper::generateBankCardOrderNo();
$nextStep = 'confirm-bind'; $nextStep = 'confirm-bind';
@ -151,7 +151,7 @@ class RechargeController extends AbstractController
return $params; return $params;
} }
private function buildPrepayParams($outMemberId, $outOrderNo, $protocol, $amount, $app) private function buildPrepayParams($outMemberId, $outOrderNo, $protocol, $amount, $notifyUrl, $app)
{ {
$params = [ $params = [
'app_id' => $app->app_id, 'app_id' => $app->app_id,
@ -162,6 +162,7 @@ class RechargeController extends AbstractController
'outOrderNo' => $outOrderNo, 'outOrderNo' => $outOrderNo,
'protocol' => $protocol, 'protocol' => $protocol,
'payAmount' => $amount, 'payAmount' => $amount,
'notifyUrl' => $notifyUrl,
]), ]),
]; ];
$sign = \App\Helper\Platform\Signer::sign($params, $app->app_key); $sign = \App\Helper\Platform\Signer::sign($params, $app->app_key);

Loading…
Cancel
Save