ChatAIGC文档

ChatAIGC全能AI知识库系统PHP版部署文档


后台上传微信小程序

<p>[TOC]</p> <h1>后台上传微信小程序 一键上传<a href="https://doc.chatmoney.cn/pro/front/fastmnp.html#%E5%90%8E%E5%8F%B0%E4%B8%8A%E4%BC%A0%E5%BE%AE%E4%BF%A1%E5%B0%8F%E7%A8%8B%E5%BA%8F">​</a></h1> <p>提示</p> <p>本教程为微信小程序一键上传,如果上传失败,推荐使用方式手动编译上传。</p> <h2>微信小程序类目资质<a href="https://doc.chatmoney.cn/pro/front/fastmnp.html#%E5%BE%AE%E4%BF%A1%E5%B0%8F%E7%A8%8B%E5%BA%8F%E7%B1%BB%E7%9B%AE%E8%B5%84%E8%B4%A8">​</a></h2> <p><a href="https://developers.weixin.qq.com/community/develop/article/doc/000a6c1c700c78bce2204942066813"><a href="https://developers.weixin.qq.com/community/develop/article/doc/000a6c1c700c78bce2204942066813">https://developers.weixin.qq.com/community/develop/article/doc/000a6c1c700c78bce2204942066813</a></a></p> <h2>AppID、AppSecret设置<a href="https://doc.chatmoney.cn/pro/front/fastmnp.html#appid%E3%80%81appsecret%E8%AE%BE%E7%BD%AE">​</a></h2> <p>登录系统管理后台,点击【渠道设置】-【微信小程序】,打开<a href="https://mp.weixin.qq.com/"><a href="https://mp.weixin.qq.com">https://mp.weixin.qq.com</a></a>,登录微信小程序,单击【开发】-&gt;【开发管理】,复制AppID、AppSecret到管理后台,单击【保存】。<img src="https://doc.chatmoney.cn/docs/images/general/front/mnp/mnp-config-1.png" alt="" /></p> <h2>服务器域名设置<a href="https://doc.chatmoney.cn/pro/front/fastmnp.html#%E6%9C%8D%E5%8A%A1%E5%99%A8%E5%9F%9F%E5%90%8D%E8%AE%BE%E7%BD%AE">​</a></h2> <p>⚠️ 警告</p> <p>这里设置的域名,都为本系统的域名,如果有使用对象存储、或者其他地方设置了图片代理域名等,请将使用的域名也增加进去,不然和域名相关的功能可以存在异常。</p> <p>在微信小程序官方管理后台,单击【开发管理】,找到【服务器域名】项,单击【开始配置】。<br /> 在系统管理后台,点击【渠道设置】-【微信小程序】,找到【服务器域名】项,将服务器域名复制到微信小程序管理后台对应输入框,单击【保存并提交】。<img src="https://doc.chatmoney.cn/docs/images/general/front/mnp/mnp-config-2.png" alt="" /><img src="https://doc.chatmoney.cn/docs/images/general/front/mnp/mnp-config-3.png" alt="" /></p> <h2>业务域名设置<a href="https://doc.chatmoney.cn/pro/front/fastmnp.html#%E4%B8%9A%E5%8A%A1%E5%9F%9F%E5%90%8D%E8%AE%BE%E7%BD%AE">​</a></h2> <p>注意</p> <p>如果增加导航链接或者其他非本系统链接需要在小程序webview打开,除了本系统的域名外,还需要再增加该链接的域名。</p> <ul> <li><strong>步骤1</strong>: 在微信小程序官方管理后台,单击【开发管理】,找到【业务域名】项,单击【开始配置】。<br /> <img src="https://doc.chatmoney.cn/docs/images/general/front/mnp/mnp-config-4.png" alt="" /></li> <li><strong>步骤2</strong>:</li> </ul> <p>⚠️ 警告</p> <p>1.如果多次下载,文件可能会被电脑修改名称,请上传时保留原来的文件名称。<br /> 2.注意不要弄错项目目录。</p> <p>单击【下载校验文件】,将文件上传到该域名对应的项目目录的&quot;server/public&quot;路径。<img src="https://doc.chatmoney.cn/docs/images/general/front/mnp/mnp-config-5.png" alt="" /><img src="https://doc.chatmoney.cn/docs/images/general/front/mnp/mnp-config-6.png" alt="" /></p> <ul> <li><strong>步骤3</strong>: 登录系统管理后台,单击【渠道设置】-&gt;【微信小程序】,【复制】业务域名。然后在微信小程序官方管理后台填写【保存】。<img src="https://doc.chatmoney.cn/docs/images/general/front/mnp/mnp-config-7.png" alt="" /><img src="https://doc.chatmoney.cn/docs/images/general/front/mnp/mnp-config-8.png" alt="" /></li> </ul> <h2>环境配置<a href="https://doc.chatmoney.cn/pro/front/fastmnp.html#%E7%8E%AF%E5%A2%83%E9%85%8D%E7%BD%AE">​</a></h2> <ul> <li> <p><strong>步骤1</strong>:<br /> 单击【网站】-&gt;【Node项目】-&gt;【安装node】,建议node18,设置命令版为安装的node版本。<img src="https://doc.chatmoney.cn/docs/images/general/front/fastmnp/mnp-env-1.png" alt="" /></p> </li> <li><strong>步骤2</strong>:<br /> 单击【文件】,找到项目目录下“server/extend/miniprogram-ci”,单击【终端】,运行一下命令安装node相关依赖。</li> </ul> <p>shell</p> <pre><code>npm install miniprogram-ci --save</code></pre> <p><img src="https://doc.chatmoney.cn/docs/images/general/front/fastmnp/mnp-env-2.png" alt="" /></p> <ul> <li><strong>步骤3</strong>:<br /> 单击【软件商店】-&gt;【已安装】,找到项目所用的PHP版,单击【设置】-&gt;【禁用函数】-&gt;【删除】函数exec。<img src="https://doc.chatmoney.cn/docs/images/general/front/fastmnp/mnp-env-3.png" alt="" /></li> </ul> <h2>后台上传<a href="https://doc.chatmoney.cn/pro/front/fastmnp.html#%E5%90%8E%E5%8F%B0%E4%B8%8A%E4%BC%A0">​</a></h2> <h3>IP白名单<a href="https://doc.chatmoney.cn/pro/front/fastmnp.html#ip%E7%99%BD%E5%90%8D%E5%8D%95">​</a></h3> <p>如果设置了上传小程序的IP白名单,请填写服务器IP地址。<img src="https://doc.chatmoney.cn/docs/images/general/front/fastmnp/set-ip.png" alt="" /></p> <h3>上传小程序<a href="https://doc.chatmoney.cn/pro/front/fastmnp.html#%E4%B8%8A%E4%BC%A0%E5%B0%8F%E7%A8%8B%E5%BA%8F">​</a></h3> <p>单击【渠道设置】-&gt;【微信小程序】-&gt;【小程序一键上传】-&gt;【上传小程序】。<img src="https://doc.chatmoney.cn/docs/images/general/front/fastmnp/update.png" alt="" /></p> <h2>用户隐私保护指引设置<a href="https://doc.chatmoney.cn/pro/front/fastmnp.html#%E7%94%A8%E6%88%B7%E9%9A%90%E7%A7%81%E4%BF%9D%E6%8A%A4%E6%8C%87%E5%BC%95%E8%AE%BE%E7%BD%AE">​</a></h2> <ul> <li><strong>步骤1</strong>:<br /> 在小程序官方后台单击【设置】-&gt;【更新】。<img src="https://doc.chatmoney.cn/docs/images/general/front/mnp/agreement-1.png" alt="" /></li> <li><strong>步骤2</strong>:<br /> 选择【本小程字处理了用户信息,将如实填写并及时更新用户信息处理情况。】-&gt;【确定以上内容】。<img src="https://doc.chatmoney.cn/docs/images/general/front/mnp/agreement-2.png" alt="" /></li> <li><strong>步骤3</strong>:<br /> 设置用户信息与使用接口对应关系,单击【确定】。<img src="https://doc.chatmoney.cn/docs/images/general/front/mnp/agreement-3.png" alt="" /><img src="https://doc.chatmoney.cn/docs/images/general/front/mnp/agreement-4.png" alt="" /></li> <li><strong>步骤4</strong>:<br /> 按下图设置,其中电话填写自己的手机号码,单击【确定并生成授权】。</li> </ul> <h2>提交审核<a href="https://doc.chatmoney.cn/pro/front/fastmnp.html#%E6%8F%90%E4%BA%A4%E5%AE%A1%E6%A0%B8">​</a></h2> <p>上传以后,登录小程序官方后台,可以看到小程序的开发版本,提交审核即可。等审核通过,点按钮发布。<img src="https://doc.chatmoney.cn/docs/images/general/front/mnp/audit.png" alt="" /></p>

页面列表

ITEM_HTML