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(),