登录 注册 VIP特权 提交收录
Search Engine Optimization,不撸代码不修BUG
主页 » 小程序 » 正文

新版影视小程序搭建

后台安装环境

1.环境php7.0

2.php拓展安装:fileinfo、redis、sg11

3.添加站点—设置ssl证书—上传后端文件《后端文件修改,/maccms/wxapi/config/dbs.php--修改当前数据库》—安装cms

4.安装好后,管理数据库—删除原数据库和导入数据库重名的数据文件—导入源码带的数据库文件

5.遇到苹果cms 更新,小程序模块会被清除,需要到面板找到/www/wwwroot/你的cms网站/application/admin/common路径下的auth.php

进行编辑,添加以下代码即可添加上小程序的模块。

'12' => array('name' => '小程序', 'icon' => 'xe621', 'sub' => array(

'121' => array("show"=>1,"name" => '小程序配置', 'controller' => 'wxapi', 'action' => 'index'),

'12100' => array("show"=>0,'name' => '添加配置', 'controller' => 'wxapi',  'action' => 'info'),

'12101' => array("show"=>0,'name' => '删除配置', 'controller' => 'wxapi',  'action' => 'del'),

'12102' => array("show"=>0,'name' => '修改配置', 'controller' => 'wxapi',  'action' => 'field'),

 

)),

6.开启cms后台,系统-开放api配置,接口开关打开。

7.小程序模块设置-小程序设置(需要对接前端的信息有cms后台网址、APP标识、iv、key),其次客户端检测关闭,要不调试时不能播放,调试软件不是手机微信客户端。

小程序-首页设置

小程序-分类设置

分类类型代码如下(复制就好)[{"type_name":"连续剧","type_id":"2","type_extend":{"class":["全部","言情","喜剧","悬疑","都市","偶像","古装","军事","警匪","历史","励志","神话","谍战","青春","家庭","动作","情景","武侠","科幻","其他"],"area":["全部","大陆","美国","香港","台湾","韩国","泰国","日本","英国","新加坡"],"lang":"全部,国语,英语,粤语,闽南语,韩语,日语,其它","year":["全部","2020","2019","2018","2017","2016","2015","2014","2013","2012","2011","2010","2009","2008","2006","2005","2004"]}},{"type_name":"电影","type_id":"1","type_extend":{"class":["全部","喜剧","爱情","动作","恐怖","科幻","剧情","犯罪","奇幻","战争","悬疑","动画","文艺","伦理","纪录","传记","歌舞","古装","历史","惊悚","其他"],"area":["全部","大陆","美国","香港","韩国","日本","法国","英国","德国","台湾","泰国","印度","其他"],"year":["全部","2020","2019","2018","2017","2016","2015","2014","2013","2012","2011","2010"]}},{"type_name":"综艺","type_id":"3","type_extend":{"class":["全部","选秀","情感","访谈","播报","旅游","音乐","美食","纪实","曲艺","生活","游戏互动","财经","求职","其他"],"area":["全部","内地","港台","日韩","欧美","其他"],"year":["全部","2020","2019","2018","2017","2016","2015","2014","2013","2012","2011","2010"]}},{"type_name":"动漫","type_id":"4","type_extend":{"class":["全部","热血","科幻","美少女","魔幻","经典","励志","少儿","冒险","搞笑","推理","恋爱","治愈","幻想","校园","动物","机战","亲子","儿歌","运动","悬疑","怪物","战争","益智","青春","童话","竞技","动作","社会","友情","真人版","电影版","OVA版","TV版","新番动画","完结动画"],"area":["全部","日本","美国","大陆"],"lang":"全部,国语,英语,粤语,闽南语,韩语,日语,其它","year":["全部","2020","2019","2018","2017","2016","2015","2014","2013","2012","2011","2010","2009","2008","2007","2006","2005","2004"]}}]

首页推荐影片数据的方法:请对应:推荐1=视频分类大类ID1、推荐2=视频分类大类ID2、以此类推。但是注意:推荐9=小程序首页上面幻灯片
小程序-专题设置(暂时不清楚json代码)
小程序解析接口更改,后端源码-wxApi-src-app-Api-JX.php在该文件内修改即可
采集绑定分类说明

15.接口连接数据库配置


前端对接后台配置

小程序后台配置request合法域名

https://api.douban.com;https://frodo.douban.com;https://m.douban.com;https://mip.chinaz.com; 加上你自己的域名,注意是https

在文件中找到/common/main.js 搜索cjurl 根据对应的修改。


温馨提示:登录后可阅读隐藏的内容。 登录可见

标签: 影视小程序
! 如链接失效请在下方留言。本站所发布的全部内容源于互联网搬运,仅限于小范围内传播学习和文献参考,请在下载后24小时内删除,如果有侵权之处请第一时间联系我们删除。敬请谅解! E-mail:49613651@qq.com
原创文章,作者:一宇A1xt,如若转载,请注明出处:https://www.a1xt.com/archives/592.html

相关推荐

最新苹果cms影视小程序 最详细教程附带最新完整源码程序

资源介绍源码简介:小程序可以打开流量主权限,达到开通条件可以选择开通流量主满足赚钱流量主可以刷上去,但是不建议这样做,否则有被封的危险...


猜你喜欢

最新苹果cms影视小程序 最详细教程附带最新完整源码程序

后台安装环境1.环境php7.02.php拓展安装:fileinfo、redis、sg113.添加站点—设置ssl证书—上传后端文件《...


上一篇
下一篇

发表评论