微信影视小程序搭建教程_搭建影视小程序视频教程

微信影视小程序搭建教程_搭建影视小程序视频教程


微信影视小程序搭建教程_搭建影视小程序视频教程
查看源码

视频搭建教程VIP免费看

付费隐藏内容
此处内容需要权限查看

该内容查看价格:¥15 / VIP会员免费

开通VIP免费查看

文字搭建教程


源码下载:https://www.yunmage.com
后台安装环境
准备工作:
1.源码
2.微信小程序账号,注册地址:mp.weixin.com
3.服务器一台
4.备案域名一个
5.Ssl证书一个

1.环境php7.0 

2.php拓展安装:fileinfo、redis

2.添加站点—设置ssl证书—上传后端文件《后端文件修改,/maccms/wxapi/config/dbs.php--修改当前数据库》—安装cms
3.遇到苹果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),其次客户端检测关闭,要不调试时不能播放,调试软件不是手机微信客户端。
8. 小程序-首页设置
9. 小程序-分类设置
分类类型代码如下(复制就好)
[{"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"]}}]
6. 小程序-专题设置(暂时不清楚json代码)
7. 小程序解析接口更改
cms后台配置说明
采集绑定分类说明
后台接口
接口连接数据库配置
开启签名验证,默认开启
前端对接后台配置
小程序后台配置request合法域名
https://api.douban.com;https://frodo.douban.com;https://m.douban.com; https://mip.chinaz.com       加你自己的域名,注意https
/common/main.js  搜索cjurl    
修改APPID
这个功能本来是跳转小程序功能,设置开启时是正常的,关闭的时候有时候会出现跳转到腾讯小程序的错误。所以可以在小程序前端代码上禁用这个代码。pages/detail/detail.js这个文件,可以删除或者用/* */注释然后重新上传审核/*if("1"==o.$config.detail.play.radio&&o.$config.detail.play.APPID)o.$config.detail.play.APPID.indexOf("pages")>=0?t.navigateTo({url:o.$config.detail.play.APPID}):t.showModal({title:"",content:"服务器不稳定,请前后再试",confirmText:"确定",success:function(e){e.confirm&&t.navigateToMiniProgram({appId:o.$config.detail.play.APPID,path:"pages/detail/detail?id="+a.voddata.vod_id,success:function(t){}})}});else */
分享到 :
相关推荐

Ptcms小说系统采集规则编写视频教程_ptcms采集规则编写教程

ptcms采集规则编写教程,今天晚上有空给你们做了一个ptcms小说采集规则的视频教...

狮子鱼社区团购小程序视频搭建教程_微信团购小程序源码视频搭建教程

狮子鱼社区团购小程序视频搭建教程_微信团购小程序源码视频搭建教程本教程是根据版本v[...

宝塔面板安装教程_Centos7安装宝塔面板

安装要求:内存:512M以上,推荐768M以上(纯面板约占系统60M内存)硬盘:[&...

虚拟机安装Centos7教程_Centos7安装教程

Centos7安装教程今天给大家来的是centos7的安装教程,声明:本站所有文[&...

发表评论

电子邮件地址不会被公开。 必填项已用*标注