admin管理员组

文章数量:1532440

1.后台发请求获取微信返回的扫码页面
$redirect_uri=“http://你的微信开放平台绑定域名下处理扫码事件的方法”;
r e d i r e c t u r i = u r l e n c o d e ( redirect_uri=urlencode( redirecturi=urlencode(redirect_uri);//该回调需要url编码
$appID=“你的appid”;
$scope=“snsapi_login”;//写死,微信暂时只支持这个值
//准备向微信发请求
$url = “https://open.weixin.qq/connect/qrconnect?appid=” . KaTeX parse error: Expected 'EOF', got '&' at position 8: appID."&̲redirect_uri=".redirect_uri
."&response_type=code&scope=".$scope."&state=STATE#wechat_redirect";
//请求返回的结果(实际上是个html的字符串)
r e s u l t = f i l e g e t c o n t e n t s ( result = file_get_contents( result=filegetc

本文标签: 网页