获取openid 的步骤
1.引导客户打开 https://open.weixin.qq.com/connect/oauth2/authorize?appid=appid
&redirect_uri=https://wx.yayi365.cn
&response_type=code&scope=snsapi_base&state=123#wechat_redirect
2.获取网址中被转换成的code
3.通过code换取网页授权openid ,access_token(可选)
https://api.weixin.qq.com/sns/oauth2/access_token?appid=appid
&secret=secret
&code=041D5lE12ZIjd0126TE12E0kE12D5lEb&grant_type=authorization_code