# get-qy-wechat-code **Repository Path**: braveheart90/get-qy-wechat-code ## Basic Information - **Project Name**: get-qy-wechat-code - **Description**: 绕开企业微信可信域名,授权域名只能填写一个 - **Primary Language**: PHP - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 2 - **Created**: 2018-09-27 - **Last Updated**: 2021-03-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 绕开企业微信可信域名,授权域名只能填写一个 使用样例 将html文件放置到可信域名可访问目录 ``` $redirectUrl = urlencode('http://'.$_SERVER['SERVER_NAME'].$_SERVER["REQUEST_URI"]); $Url = 'http://XXX.com/get-code.html?appid=appid&redirect_uri='.$redirectUrl.'&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect'; redirect($Url); ```