当前位置:网站首页>phpcms小程序插件4.0版正式上线
phpcms小程序插件4.0版正式上线
2022-06-26 08:38:00 【cms小程序插件【官方】】
phpcms小程序插件4.0版主要引入token验证机制,相比之前的单一wxid验证方式,进一步增加接口的安全,防止被其他小程序随意调用!和之前版本主要区别如下:
(1)引入Token验证机制,通过请求头传参,做身份验证!(post和get都不允许)
(2)精简验证请求参数代码,根据不同错误返回对应提示,方便调试
(3)封装接口验证类,方便调用及修改
(4)优化列表返回值数组,包含列表、推荐位列表、搜索列表等,新增万能接口get_diy.php。
(5)封装小程序API请求方式,demo中有对应案例,也可以继续使用默认的API请求方式
另新增promise异步请求处理方式,可以自行调试!
目前phpcms小程序插件4.0版所有功能主要有:
1、网站栏目调用:可调用任意制定的catid的栏目信息及子栏目信息
2、网站列表调用:调用任意栏目信息,如果为单页面调用单页面内容
3、文章内容调用:调用指定id的文章内容,同时可以通过relation=1来调用该文章的相关文章列表
4、推荐位内容调用:调用指定posid的推荐位内容
5、获取用户登录授权信息,并保存到网站后台
6、调用系统配置信息
(1)调用用户配置的banner,后台可以随意上传修改删除banner
(2)调用用户配置的基本信息,比如电话、地址、底部版权,设置小程序列表分页数量
(3)对接小程序在线留言,目前支持字段:标题、姓名、电话、邮箱、地址、内容以及回复内容
(4)调用客户留言,既可以调用全部内容,也可以通过文章id调用该文章下的留言
(5)更新或取消留言点赞
7、实现与phpcms v9的自定义表单对接,数据直接在网站后台自定义表单处查看
8、万能接口get_diy.php,可以调用除去内容表之外的表内容;
9、支持多小程序,后台可以创建多个小程序,微信、百度可以同时兼容使用
更多关于小程序插件使用教程可参阅:http://doc.tengcee.com,不在一一赘述!
如有需要可以随时给我留言或者加我Q:2863868475,提供技术支持,欢迎反馈bug及意见!
微信小程序demo参考:
边栏推荐
- 什么是乐观锁,什么是悲观锁
- How to realize wireless Ethernet high-speed communication for multiple Mitsubishi PLCs?
- 多台三菱PLC如何实现无线以太网高速通讯?
- Sqoop merge usage
- Sublime Text3 common plug-ins
- 1.26 pytorch learning
- phpcms v9商城模块(修复自带支付宝接口bug)
- KNN resolution
- 在同花顺开户证券安全吗,
- WBC learning notes (II): practical application of WBC control
猜你喜欢

Principle of playing card image segmentation

Degree of freedom analysis_ nanyangjx

Yolov5进阶之四训练自己的数据集

滑块验证 - 亲测 (京东)

框架跳转导致定位失败的解决方法

Fast construction of neural network
![[300+ continuous sharing of selected interview questions from large manufacturers] column on interview questions of big data operation and maintenance (I)](/img/cf/44b3983dd5d5f7b92d90d918215908.png)
[300+ continuous sharing of selected interview questions from large manufacturers] column on interview questions of big data operation and maintenance (I)

Construction and verification of mongodb sharding environment (redis final assignment)

Line detection_ nanyangjx

Autoregressive model of Lantern Festival
随机推荐
phpcms v9手机访问电脑站一对一跳转对应手机站页面插件
Pandas vs. SQL 1_ nanyangjx
爬虫 对 Get/Post 请求时遇到编码问题的解决方案
[unity mirror] use of networkteam
[program compilation and pretreatment]
基于SSM的毕业论文管理系统
phpcms v9商城模块(修复自带支付宝接口bug)
Whale conference one-stop intelligent conference system helps organizers realize digital conference management
20220623 getting started with Adobe Illustrator
Checkerboard generation + camera calibration + stereo matching
XSS cross site scripting attack
Computer mall based on SSM
Implementation code of interceptor and filter
nn. Modulelist and nn Sequential
Yolov5进阶之四训练自己的数据集
Fast construction of neural network
Code de mise en œuvre de l'intercepteur et du filtre
Convex optimization of quadruped
Exploration of webots and ROS joint simulation (I): software installation
Machine learning (Part 2)