{"_path":"/docs/3rd/weixin","_draft":false,"_partial":false,"_empty":false,"title":"微信开放平台","description":"在宁皓独立开发者训练营中，会在要开发的应用里实现一个微信登录功能，这需要先在微信开放平台注册账户，完成实名认证后再去创建一个开放平台的网站应用。","excerpt":{"type":"root","children":[{"type":"element","tag":"h1","props":{"id":"微信开放平台"},"children":[{"type":"text","value":"微信开放平台"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"在宁皓独立开发者训练营中，会在要开发的应用里实现一个微信登录功能，这需要先在微信开放平台注册账户，完成实名认证后再去创建一个开放平台的网站应用。"}]},{"type":"element","tag":"h2","props":{"id":"微信开放平台-1"},"children":[{"type":"text","value":"微信开放平台"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"登录微信开放平台，注册一个帐号。"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"element","tag":"strong","props":{},"children":[{"type":"text","value":"官方网站"}]},{"type":"text","value":"："},{"type":"element","tag":"a","props":{"href":"https://open.weixin.qq.com/","rel":["nofollow","noopener","noreferrer"],"target":"_blank"},"children":[{"type":"text","value":"https://open.weixin.qq.com"}]}]},{"type":"element","tag":"h2","props":{"id":"开发者资质认证"},"children":[{"type":"text","value":"开发者资质认证"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"登录到微信开放平台，在 "},{"type":"element","tag":"em","props":{},"children":[{"type":"text","value":"帐号中心"}]},{"type":"text","value":" - "},{"type":"element","tag":"em","props":{},"children":[{"type":"text","value":"开发者资质认证"}]},{"type":"text","value":" 页面，申请完成认证，认证需要缴纳 ￥ 300 元的费用。"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"element","tag":"img","props":{"alt":"","src":"/images/docs/3rd/weixin/image.png"},"children":[]}]},{"type":"element","tag":"h2","props":{"id":"绑定公众号"},"children":[{"type":"text","value":"绑定公众号"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"打开 "},{"type":"element","tag":"em","props":{},"children":[{"type":"text","value":"管理中心"}]},{"type":"text","value":" - "},{"type":"element","tag":"em","props":{},"children":[{"type":"text","value":"公众帐号"}]},{"type":"text","value":" 页面，绑定我们之前注册并认证过的微信公众帐号。"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"element","tag":"img","props":{"alt":"","src":"/images/docs/3rd/weixin/image(1).png"},"children":[]}]},{"type":"element","tag":"h2","props":{"id":"创建网站应用"},"children":[{"type":"text","value":"创建网站应用"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"打开 "},{"type":"element","tag":"em","props":{},"children":[{"type":"text","value":"管理中心"}]},{"type":"text","value":" - "},{"type":"element","tag":"em","props":{},"children":[{"type":"text","value":"网站应用"}]},{"type":"text","value":" 页面，在这里创建一个网站应用。\n"},{"type":"element","tag":"img","props":{"alt":"","src":"/images/docs/3rd/weixin/image(2).png"},"children":[]},{"type":"text","value":"\n审核通过以后，打开这个网站应用，这里会显示这个网站应用的 AppID，可以重置 AppSecret（应用密钥），我们要实现的微信功能暂时用不到这些东西。"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"element","tag":"img","props":{"alt":"","src":"/images/docs/3rd/weixin/image(3).png"},"children":[]}]},{"type":"element","tag":"h2","props":{"id":"设置授权回调域"},"children":[{"type":"text","value":"设置授权回调域"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"打开网站应用页面，在开发信息的下面设置一下 "},{"type":"element","tag":"em","props":{},"children":[{"type":"text","value":"授权回调域"}]},{"type":"text","value":"，在使用微信登录时，用户确定登录后，微信提供的登录页面会重定向到一个指定的地址，这个地址允许的域名需要在授权回调域这里设置一下。\n"},{"type":"element","tag":"img","props":{"alt":"","src":"/images/docs/3rd/weixin/image(4).png"},"children":[]}]}]},"body":{"type":"root","children":[{"type":"element","tag":"h1","props":{"id":"微信开放平台"},"children":[{"type":"text","value":"微信开放平台"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"在宁皓独立开发者训练营中，会在要开发的应用里实现一个微信登录功能，这需要先在微信开放平台注册账户，完成实名认证后再去创建一个开放平台的网站应用。"}]},{"type":"element","tag":"h2","props":{"id":"微信开放平台-1"},"children":[{"type":"text","value":"微信开放平台"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"登录微信开放平台，注册一个帐号。"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"element","tag":"strong","props":{},"children":[{"type":"text","value":"官方网站"}]},{"type":"text","value":"："},{"type":"element","tag":"a","props":{"href":"https://open.weixin.qq.com/","rel":["nofollow","noopener","noreferrer"],"target":"_blank"},"children":[{"type":"text","value":"https://open.weixin.qq.com"}]}]},{"type":"element","tag":"h2","props":{"id":"开发者资质认证"},"children":[{"type":"text","value":"开发者资质认证"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"登录到微信开放平台，在 "},{"type":"element","tag":"em","props":{},"children":[{"type":"text","value":"帐号中心"}]},{"type":"text","value":" - "},{"type":"element","tag":"em","props":{},"children":[{"type":"text","value":"开发者资质认证"}]},{"type":"text","value":" 页面，申请完成认证，认证需要缴纳 ￥ 300 元的费用。"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"element","tag":"img","props":{"alt":"","src":"/images/docs/3rd/weixin/image.png"},"children":[]}]},{"type":"element","tag":"h2","props":{"id":"绑定公众号"},"children":[{"type":"text","value":"绑定公众号"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"打开 "},{"type":"element","tag":"em","props":{},"children":[{"type":"text","value":"管理中心"}]},{"type":"text","value":" - "},{"type":"element","tag":"em","props":{},"children":[{"type":"text","value":"公众帐号"}]},{"type":"text","value":" 页面，绑定我们之前注册并认证过的微信公众帐号。"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"element","tag":"img","props":{"alt":"","src":"/images/docs/3rd/weixin/image(1).png"},"children":[]}]},{"type":"element","tag":"h2","props":{"id":"创建网站应用"},"children":[{"type":"text","value":"创建网站应用"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"打开 "},{"type":"element","tag":"em","props":{},"children":[{"type":"text","value":"管理中心"}]},{"type":"text","value":" - "},{"type":"element","tag":"em","props":{},"children":[{"type":"text","value":"网站应用"}]},{"type":"text","value":" 页面，在这里创建一个网站应用。\n"},{"type":"element","tag":"img","props":{"alt":"","src":"/images/docs/3rd/weixin/image(2).png"},"children":[]},{"type":"text","value":"\n审核通过以后，打开这个网站应用，这里会显示这个网站应用的 AppID，可以重置 AppSecret（应用密钥），我们要实现的微信功能暂时用不到这些东西。"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"element","tag":"img","props":{"alt":"","src":"/images/docs/3rd/weixin/image(3).png"},"children":[]}]},{"type":"element","tag":"h2","props":{"id":"设置授权回调域"},"children":[{"type":"text","value":"设置授权回调域"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"打开网站应用页面，在开发信息的下面设置一下 "},{"type":"element","tag":"em","props":{},"children":[{"type":"text","value":"授权回调域"}]},{"type":"text","value":"，在使用微信登录时，用户确定登录后，微信提供的登录页面会重定向到一个指定的地址，这个地址允许的域名需要在授权回调域这里设置一下。\n"},{"type":"element","tag":"img","props":{"alt":"","src":"/images/docs/3rd/weixin/image(4).png"},"children":[]}]}],"toc":{"title":"","searchDepth":2,"depth":2,"links":[{"id":"微信开放平台-1","depth":2,"text":"微信开放平台"},{"id":"开发者资质认证","depth":2,"text":"开发者资质认证"},{"id":"绑定公众号","depth":2,"text":"绑定公众号"},{"id":"创建网站应用","depth":2,"text":"创建网站应用"},{"id":"设置授权回调域","depth":2,"text":"设置授权回调域"}]}},"_type":"markdown","_id":"content:docs:3.3rd:4.weixin.md","_source":"content","_file":"docs/3.3rd/4.weixin.md","_extension":"md"}