建站教程盲盒商城系统安装使用教程菜鸟教程系统安装,使用,教程 - Powered by Discuz!
<link rel="stylesheet" type="text/css" href="source/plugin/qzom_thread/styles/4/styles.css"><strong><strong>1.后台使用教程:</strong><br /></strong><ul><li>宝塔环境<br /></ul><font style="color:rgb(102, 102, 102)">php7.1以上,建议宝塔Nginx,php管理那里删除掉</font><font style="color:rgb(255, 0, 0)">禁用</font><font style="color:rgb(102, 102, 102)">函数</font><font style="color:rgb(102, 102, 102)">:</font><strong>putenv</strong><font style="color:rgb(28, 114, 49)">安装</font><strong>Redis</strong><font style="color:rgb(102, 102, 102)">扩展,然后重启php服务!</font><br /><ul><li>创建网站<br /></ul><font style="color:rgb(102, 102, 102)">解压后端文件上传源码到目录,设置运行目录:public</font><br /><ul><li>设置ssl证书<br /></ul><strong>宝塔和阿里云都有免费的ssl证书</strong><strong>设置伪静态:伪静态设置为thinkphp(不配置伪静态会h5页面没有数据)</strong><br /><ul><li>配置数据库sql<br /></ul><font style="color:rgb(102, 102, 102)">文件导入数据库</font><font style="color:rgb(102, 102, 102)"> </font><font style="color:rgb(102, 102, 102)">修改数据库连接信息文件</font><strong>.env</strong><br /><ul><li>访问后台地址<br /></ul><strong>网址/</strong><strong>huaidan</strong><strong>.php 用户admin 密码123456</strong><strong>前端访问网址:网址/h5/</strong><br /><strong><strong>2.</strong><strong>前端配置方式:</strong><br /></strong><ul><li>前端打包配置<br /></ul><font style="color:rgb(102, 102, 102)">下载hbuilder软件,</font><font style="color:rgb(102, 102, 102)"><a href="https://www.dcloud.io/" target="_blank">https://www.dcloud.io/</a></font><font style="color:rgb(102, 102, 102)">1.导入解压好的前端文件夹</font><br /><font style="color:rgb(102, 102, 102)">2.</font><font style="color:rgb(102, 102, 102)">批量替换网站名字为自己的</font><br /><font style="color:rgb(102, 102, 102)">3.</font><font style="color:rgb(102, 102, 102)">修改manifest.json</font><br /><font style="color:rgb(102, 102, 102)">4.</font><font style="color:rgb(102, 102, 102)">修改main.js网址</font><font style="color:rgb(102, 102, 102)">5.</font><font style="color:rgb(102, 102, 102)">重新获取appid</font><font style="color:rgb(102, 102, 102)">6.</font><font style="color:rgb(102, 102, 102)">然后发行至PC或H5</font><font style="color:rgb(102, 102, 102)">7.</font><font style="color:rgb(102, 102, 102)">将H5里面的文件上传网站/public/H5/目录进行替换</font><br /><font style="color:rgb(102, 102, 102)">8.</font><font style="color:rgb(102, 102, 102)">如果上传h5网络连接错误,请注意这里是否是https (不要设置你的网址,只看是否https)</font><font style="color:rgb(102, 102, 102)">9.</font><font style="color:rgb(102, 102, 102)">后台默认地址:网址/huaidan.php 用户admin 密码123456</font><br /><ul><li>短信对接<br /></ul><strong>本套源码短信接口已对接短信宝 可直接在后台 插件管理里面配置短信宝接口。</strong><strong>短信宝注册地址;</strong>短信宝签名申请教程 <a href="https://bbs.huaidanwangluo.com/thread-914-1-1.html" target="_blank">https://bbs.huaidanwangluo.com/thread-914-1-1.html</a><br /><br /><br /><strong>短信宝获取密码key</strong><br /><br /><strong>阿里云短信接口已取消默认。现在默认的是</strong><strong>短信宝接口</strong><strong>。</strong><strong>想用阿里云接口的,自己去改。</strong><font style="color:rgb(102, 102, 102)">阿里云短信在文件夹/addons/alisms和/application/common/library/sms.php</font><font style="color:rgb(102, 102, 102)">Alisms($accessKeyId,$accessKeySecret)对应的ID和KEY,sms_是短信模板,阿里云上模板内容:</font><strong>你的短信验证码是:${code}</strong><font style="color:rgb(51, 51, 51)">,</font><font style="color:rgb(51, 51, 51)">网页代码上是:</font><strong>你的短信验证码是:{$code},注意区分</strong><ul><li>易支付对接+码支付对接<br /></ul><font style="color:rgb(102, 102, 102)">第三方支付接口:/addons/epay/ 对接易支付和码支付 只要是SAF 易支付系统平台的都可以对接</font><font style="color:rgb(102, 102, 102)"> </font><font style="color:rgb(102, 102, 102)">百度:易支付 或者码支付</font><font style="color:rgb(102, 102, 102)">,如果对接官方尽量自行搭建一个易支付,然后对接自己的!</font><strong>推荐一家</strong>易支付 pay.zonghengwangluo.cn码支付 mzf.zonghengtx.cn快手通道 bbs.zonghengtx.cn<br /><br />注意:源码h5里面默认只开启支付宝付款按钮,需要你用HB软件修改一下将微信付款按钮弄出来:去掉那两个注释符号,然后保存编译,发行导出,上传h5目录替换<br />微信支付宝官方支付在/addons/epay/config.php(有开发能力的弄,不建议,有封的风险)<ul><li>微信登录配置教程<br /></ul>微信登录在/application/common/controller/ 需要认证服务号另外数据库也是需要更换如果想要关闭微信登录,在HB软件里面如图添加注释代码,编译替换h5设置调出插件管理菜单:<br />聚合登录在 <font face="SourceHanSansSC-regular, 微软雅黑, Arial, Helvetica, sans-serif"><font size="4"><font color="#ff0000"><strong>/application/api/controller/User.php </strong></font></font></font><font face="SourceHanSansSC-regular, 微软雅黑, Arial, Helvetica, sans-serif"><font size="4"><font color="#ff0000"><strong>推荐 log.zonghengwangluo.cn</strong></font></font></font><font face="SourceHanSansSC-regular, 微软雅黑, Arial, Helvetica, sans-serif"><font size="4"><font color="#ff0000"><strong>其他正常配置</strong></font></font></font><ul><li>图库阿里云OSS配置<br /></ul>晒图以及后台的图片(上传失败和没有配置七牛云时)阿里云oss配置 <strong>/application/admin/controller/Ajax.php</strong><strong>视频地址 <a href="https://www.bilibili.com/video/BV1644y1n7Zy" target="_blank">https://www.bilibili.com/video/BV1644y1n7Zy</a></strong><strong></strong><strong>3.注意事项:</strong>VUE的H5项目是存在缓存的,会出现H5界面没有及时更新h5项目(特别是vue)缓存严重的解决方案,配合nginx宝塔管理nginx上设置<br />默认情况下使用nginx作为h5静态资源的服务器时,这些资源在浏览器端是会有缓存的,特别是微信浏览器中,缓存非常严重。所以项目开始部署阶段就需要配置好nginx禁止这些资源的缓存,nginx需要做如下配置:<br /><ol><li>location / { root html; index index.html; add_header Cache-Control no-cache;}</ol><br /><br />如上配置之后,每次发布只要文件经过修改了(无视文件名),那么都会从服务端拉取最新的资源,保证项目及时更正!<ul type="1" class="litype_1"><li>一些细节搭建解决方案<br /></ul><strong>4.0教程使用问题<br /></strong><strong>微信登录接口使用教程:内置通霸云官方的登录 需要客户发送服务器ip 我需要添加过白域名</strong><strong>一般接口不用在动了,内置好的,如果出现问题联系我远程向日葵使用!</strong><br /><br /><br /><br /><br /><br /><strong><strong>2.0使用中问题</strong><br /></strong><strong>试试手气配置查看路径解决ID ,比如</strong><a href="https://mh9.boboge.top/" target="_blank"><font color="#ff0000"><strong>https://mh9.boboge.top/h5/</strong></font><strong>#/pages/index/details?id=16&type=0</strong></a><strong> ID则为16</strong><br /><br /><br /><strong>首页中奖记录不显示修改方法</strong><br /><br /><br /><strong>首页轮播图替换路径地址:/public/h5/static/image/tabbar</strong><br /><br />3.非必要修改:如果要修改至尊,稀有,普通,在前端代码修改:(这个百分百仅为展示作用,具体以商品概率为准)<br />后端修改:这个页面有两处:<br /><br /><br />原文地址<a href="https://shimo.im/docs/R13jVnbg87C1mz35/read" target="_blank">https://shimo.im/docs/R13jVnbg87C1mz35/read</a><br /><br /><br /> <h3>版权声明</h3> <p>1、本站所有资源来源于网络搜集和会员分享</p><p>2、本站所有程序仅供大家学习和参考,不得进行商业用途</p><p>3、如果觉得程序还可以、请购买官方正版</p><p>4、对不遵守本声明或其他违法、恶意使用本网站内容者,本网站保留追究其法律责任的权利。</p> <p>唯一网址: <a target="_blank" href='https://bbs.zonghengtx.cn/thread-2243-1-1.html' title='盲盒商城系统安装使用教程'>https://bbs.zonghengtx.cn/thread-2243-1-1.html</a></p> <link rel="stylesheet" type="text/css" href="source/plugin/qzom_thread/styles/4/styles.css">小手一抖,钱钱到手! <link rel="stylesheet" type="text/css" href="source/plugin/qzom_thread/styles/4/styles.css">我抢、我抢、我抢沙发~ <link rel="stylesheet" type="text/css" href="source/plugin/qzom_thread/styles/4/styles.css">不错不错,楼主您辛苦了。。。 <link rel="stylesheet" type="text/css" href="source/plugin/qzom_thread/styles/4/styles.css">顶
页:
[1]