微信授权
parent
be2cb4ae27
commit
3d9bce9520
|
|
@ -49,7 +49,7 @@ class Auth extends Controller
|
|||
$auth_type = (isset($ret['data']['auth_type']) && $ret['data']['auth_type'] == 1) ? 'snsapi_userinfo' : 'snsapi_base';
|
||||
|
||||
// 授权code
|
||||
$url = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid='.$ret['data']['appid'].'&redirect_uri='.$redirect_uri.'&response_type=cossde&scope='.$auth_type.'&state=login#wechat_redirect';
|
||||
$url = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=4444&redirect_uri='.$redirect_uri.'&response_type=code&scope='.$auth_type.'&state=login#wechat_redirect';
|
||||
return redirect($url);
|
||||
} else {
|
||||
$this->assign('msg', $ret['msg']);
|
||||
|
|
|
|||
Loading…
Reference in New Issue