feat/task1-c-wallet
gongfuxiang 2019-05-25 13:34:09 +08:00
parent c437c0ed0f
commit 489ab174e3
1 changed files with 2 additions and 2 deletions

View File

@ -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));
}
/**