百度小程序申请设置指南
<h2>1.注册并认证</h2>
<p>注册并认证百度小程序请参考官方文档
<a href="https://smartprogram.baidu.com/docs/introduction/enter_application/">https://smartprogram.baidu.com/docs/introduction/enter_application/</a></p>
<h2>2.获取小程序APP ID,APP Key 和 APP SECRET</h2>
<p>小程序注册成功后,进入小程序管理后台 <a href="https://smartprogram.baidu.com/">https://smartprogram.baidu.com/</a> ,点击左边 <strong>“开发管理->设置”</strong> 菜单后,点击 <strong>“开发设置”</strong> 选项卡,可查看 APP ID,APP Key 和设置 APP SECRET</p>
<p><strong>注意: 百度小程序比微信小程序多了APP Key, 插件后台需要填入并保存的是 APP Key 非 APP ID</strong></p>
<p><strong>APP ID 在百度开发者工具导入前端代码包时使用</strong></p>
<p>将获取到的 APP Key 和 APP SECRET,填入插件后台,进行保存即可。</p>
<p><img src="https://wpapp-cdn.wp-autoblog.net/manual/23.png" alt="" /></p>
<p><img src="https://wpapp-cdn.wp-autoblog.net/manual/5.png" alt="" /></p>
<h2>3.配置服务器域名</h2>
<p>同样小程序管理后台 <a href="https://smartprogram.baidu.com/">https://smartprogram.baidu.com/</a> ,点击左边 <strong>“开发管理->设置”</strong> 菜单后,同样 <strong>“开发设置”</strong> 选项卡,可配置服务器域名信息,简单点,所有设置都填入你网站的域名即可。</p>
<p><strong>注意: 如果图片使用cdn, downloadFile合法域名处还需填写cdn的域名</strong></p>
<p><strong>注意: 因为可能要下载百度用户头像图片,downloadFile合法域名下还需添加:himg.bdimg.com</strong></p>
<p><img src="https://wpapp-cdn.wp-autoblog.net/manual/24.png" alt="" /></p>