mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
修正微信二信码支付
This commit is contained in:
parent
9f1687f08c
commit
ae8d38b509
@ -55,6 +55,10 @@ class WechatPaymentService extends PaymentService
|
|||||||
if ($info['return_code'] === 'SUCCESS' && $info['result_code'] === 'SUCCESS') {
|
if ($info['return_code'] === 'SUCCESS' && $info['result_code'] === 'SUCCESS') {
|
||||||
// 创建支付记录
|
// 创建支付记录
|
||||||
$this->createPaymentAction($orderNo, $payTitle, $payAmount);
|
$this->createPaymentAction($orderNo, $payTitle, $payAmount);
|
||||||
|
// 微信二维码支付
|
||||||
|
if ($this->type === static::PAYMENT_WECHAT_QRC) {
|
||||||
|
return $info;
|
||||||
|
}
|
||||||
// 返回支付参数
|
// 返回支付参数
|
||||||
return $this->payment->jsapiParams($info['prepay_id']);
|
return $this->payment->jsapiParams($info['prepay_id']);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user