微信公眾號登錄(微信瀏覽器直接拉起微信授權登錄)


const appid = "wxcf05d4b9dd7faaaa"
                            const redirect_uri = encodeURI("http://www.aaaa.com/wechat?Isweixin=true")
                            window.location.href =
                                "https://open.weixin.qq.com/connect/oauth2/authorize?appid=" +
                                appid + "&redirect_uri=" + redirect_uri +
                                "&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect"

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM