From f5d23e2e2536e9954a5263b6d8665bed159aa9bf Mon Sep 17 00:00:00 2001 From: gongfuxiang <2499232802@qq.com> Date: Mon, 1 Apr 2019 22:45:41 +0800 Subject: [PATCH] =?UTF-8?q?url=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/payment/Weixin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extend/payment/Weixin.php b/extend/payment/Weixin.php index bfb1f4955..0077e06fb 100755 --- a/extend/payment/Weixin.php +++ b/extend/payment/Weixin.php @@ -231,7 +231,7 @@ class Weixin 'mch_id' => $this->config['mch_id'], 'body' => $params['site_name'].'-'.$params['name'], 'nonce_str' => md5(time().rand().$params['order_no']), - 'notify_url' => (__MY_HTTP__ == 'https') ? 'https'.mb_substr($params['notify_url'], 4, null, 'utf-8') : $params['notify_url'], + 'notify_url' => (__MY_HTTP__ == 'https') ? 'http'.mb_substr($params['notify_url'], 5, null, 'utf-8') : $params['notify_url'], 'openid' => ($trade_type == 'JSAPI') ? $params['user']['weixin_openid'] : '', 'out_trade_no' => $params['order_no'].GetNumberCode(6), 'spbill_create_ip' => GetClientIP(),