Article From:https://segmentfault.com/q/1010000010344248
Question:

Mobile web site to achieve WeChat third party login to see http://www.cnblogs.com/v-weiw…

The first step is not successful.

var url=encodeURIComponent(location.href);
            window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxadc302736fea5abf&redirect_uri="+
                url+"&response_type=code&scope=snsapi_userinfo&"+param+"#wechat_redirect";

But the opening is a hint

Answer 0:

Can only be used in WeChat to open, other browsers can not be used.

Answer 1:

Download WeChat developer tools

Answer 2:

Well. Ask the landlord, how to solve it

I think I asked a question here when I received the mail. I found the reason. Because this is the web end of the call WeChat, can only be opened with WeChat, in addition to the Jingdong. Because Jingdong WeChat login interface is not the same.

“https://open.weixin.qq.com/sn…”
This is the interface of the Jingdong tune. API is not found in it. Students who have seen can open the page of Jingdong mobile phone with chrome.
https://m.jd.com/
Absolutely unimaginable py transactions

Leave a Reply

Your email address will not be published. Required fields are marked *