From 489ab174e3cfa3a1178639f56849a1462a33b731 Mon Sep 17 00:00:00 2001 From: gongfuxiang <2499232802@qq.com> Date: Sat, 25 May 2019 13:34:09 +0800 Subject: [PATCH] wx pay --- extend/payment/Weixin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extend/payment/Weixin.php b/extend/payment/Weixin.php index 53148056e..8739fcc64 100755 --- a/extend/payment/Weixin.php +++ b/extend/payment/Weixin.php @@ -150,7 +150,7 @@ class Weixin $input = input(); if(empty($input['code'])) { - return $this->GetUserOpenId($params); + $this->GetUserOpenId($params); } else { $ret = $this->Callback($input); $this->weixin_web_openid = $ret['data']['openid']; @@ -576,7 +576,7 @@ class Weixin // 授权code $url = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid='.$this->config['appid'].'&redirect_uri='.$redirect_uri.'&response_type=code&scope=snsapi_base&state=callback#wechat_redirect'; - return redirect($url); + exit(header('location:'.$url)); } /**