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,