From 8de059ca443173dbdb4229c161f851cab4bce033 Mon Sep 17 00:00:00 2001 From: Devil Date: Sun, 13 Dec 2020 12:43:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E4=BF=A1/QQ=E6=94=AF=E4=BB=98?= =?UTF-8?q?=E9=80=80=E6=AC=BE=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/payment/QQ.php | 3 ++- extend/payment/Weixin.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/extend/payment/QQ.php b/extend/payment/QQ.php index 54a03fc82..513737aa8 100644 --- a/extend/payment/QQ.php +++ b/extend/payment/QQ.php @@ -414,7 +414,8 @@ class QQ 'mch_id' => $this->config['mch_id'], 'nonce_str' => md5(time().rand().$params['order_no']), 'transaction_id' => $params['trade_no'], - 'out_refund_no' => $params['order_no'], + 'out_trade_no' => $params['order_no'], + 'out_refund_no' => $params['order_no'].GetNumberCode(), 'refund_fee' => (int) (($params['refund_price']*1000)/10), 'op_user_id' => $this->config['op_user_id'], 'op_user_passwd' => md5($this->config['op_user_passwd']), diff --git a/extend/payment/Weixin.php b/extend/payment/Weixin.php index daba6d366..6edc0c2dd 100755 --- a/extend/payment/Weixin.php +++ b/extend/payment/Weixin.php @@ -540,7 +540,8 @@ class Weixin 'nonce_str' => md5(time().rand().$params['order_no']), 'sign_type' => 'MD5', 'transaction_id' => $params['trade_no'], - 'out_refund_no' => $params['order_no'], + 'out_trade_no' => $params['order_no'], + 'out_refund_no' => $params['order_no'].GetNumberCode(), 'total_fee' => (int) (($params['pay_price']*1000)/10), 'refund_fee' => (int) (($params['refund_price']*1000)/10), 'refund_desc' => $refund_reason,