$gateUrl = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxb0212836f703df5d&response_type=code&scope=snsapi_userinfo&connect_redirect=1&state=&redirect_uri=$thisUrl#wechat_redirect";
header('Location: ' . $gateUrl);
提示
redirect_uri与后台配置不一致
你好,请先使用社区搜索:https://developers.weixin.qq.com/community/search,查看下其他开发者的回复
$thisUrl 与后台是否一致?