当前位置:网站首页>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参考:
边栏推荐
- phpcms v9商城模块(修复自带支付宝接口bug)
- Digital image processing learning (II): Gaussian low pass filter
- QT_ AI
- Drawing with MATLAB (1)
- Tensorboard
- 小程序首页加载之前加载其他相关资源或配置(小程序的promise应用)
- Leetcode: array fast and slow pointer method
- Yolov5进阶之四训练自己的数据集
- 上下架和橱窗推荐如何设置,优化过程需要注意的地方
- Exploration of webots and ROS joint simulation (I): software installation
猜你喜欢

Selenium 搭建 Cookies池 绕过验证反爬登录

力扣399【除法求值】【并查集】

多台三菱PLC如何实现无线以太网高速通讯?

滑块验证 - 亲测 (京东)

百度小程序富文本解析工具bdParse

Trimming_ nanyangjx

Matlab drawing checkerboard (camera calibration)

Recovering the system with Clonezilla USB disk

Detailed explanation of traditional image segmentation methods

Data warehouse (3) star model and dimension modeling of data warehouse modeling
随机推荐
uniapp用uParse实现解析后台的富文本编辑器的内容及修改uParse样式
1.21 study gradient descent and normal equation
Corn image segmentation count_ nanyangjx
Leetcode notes: binary search simple advanced
Leetcode: array fast and slow pointer method
Install Anaconda + NVIDIA graphics card driver + pytorch under win10_ gpu
Construction and verification of mongodb sharding environment (redis final assignment)
1.20 study univariate linear regression
Convex optimization of quadruped
In automated testing, there are three commonly used waiting methods: sleep, implicitly\wait, and expected\u conditions
9. code generation
Optimize quiver function in MATLAB to draw arrow diagram or vector diagram (1) -matlab development
Computer mall based on SSM
【IVI】15.1.2 系统稳定性优化篇(LMKD Ⅱ)PSI 压力失速信息
VS2005 compiles libcurl to normaliz Solution of Lib missing
Machine learning (Part 1)
Convert verification code image to tfrecord file
多台三菱PLC如何实现无线以太网高速通讯?
XSS cross site scripting attack
远程工作的一些命令