From 4c5e2d74d661f6b895e8cbe21ac877520887a238 Mon Sep 17 00:00:00 2001 From: Devil Date: Sat, 2 Nov 2019 15:27:32 +0800 Subject: [PATCH] =?UTF-8?q?qq=E6=94=AF=E4=BB=98=E9=80=80=E6=AC=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/payment/QQ.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extend/payment/QQ.php b/extend/payment/QQ.php index f708f5bb0..441dc1fba 100644 --- a/extend/payment/QQ.php +++ b/extend/payment/QQ.php @@ -395,14 +395,14 @@ class QQ 'out_refund_no' => $params['order_no'].GetNumberCode(6), 'refund_fee' => intval($params['refund_price']*100), 'op_user_id' => $this->config['mch_id'], - 'op_user_passwd' => '336363', + 'op_user_passwd' => md5('336363'), ]; $data['sign'] = $this->GetSign($data); // 请求接口处理 $result = $this->XmlToArray($this->HttpRequest('https://api.qpay.qq.com/cgi-bin/pay/qpay_refund.cgi', $this->ArrayToXml($data), true)); print_r($result);die; - if(!empty($result['return_code']) && $result['return_code'] == 'SUCCESS' && !empty($result['return_msg']) && $result['return_msg'] == 'SUCCESS') + if(!empty($result['return_code']) && $result['return_code'] == 'SUCCESS') { // 统一返回格式 $data = [