回调优化
This commit is contained in:
@@ -160,8 +160,10 @@ class OnlinePaymentService
|
||||
$payment->pay_params = $gatewayData;
|
||||
$payment->save();
|
||||
|
||||
$wxjsapistr = $gatewayData['wxjsapistr'] ?? '{}';
|
||||
$wxjsapiData = json_decode($wxjsapistr);
|
||||
// 调起支付参数:旺铺渠道在应答 wxjsapistr(JSON 串)中;微信渠道下单应答本身即调起参数
|
||||
$wxjsapiData = $channel === self::CHANNEL_WANGPU
|
||||
? json_decode((string) ($gatewayData['wxjsapistr'] ?? '{}'))
|
||||
: $gatewayData;
|
||||
|
||||
return [$payment, $wxjsapiData];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user