当前位置:网站首页>小程序商城系统插件代码该如何写?怎么用代码检查添加插件是否成功?
小程序商城系统插件代码该如何写?怎么用代码检查添加插件是否成功?
2020-11-06 22:16:00 【Niushop-阿牛ger】
Niushop开源商城系统单商户V4插件管理,有店铺促销插件:砍价、组合套餐、优惠券、限时折扣、满额包邮、团购、满减活动、拼团、限时秒杀、专题活动等,有会员互动插件:刮刮乐、砸金蛋、消费奖励、充值礼包、新人礼、签到奖励、幸运抽奖等小游戏帮助提升用户兴趣,更有应用插件:电子面单、分销、微信圈子、小程序直播、店铺笔记、小票打印、客服、积分抵现、积分商城、会员注销等插件方便用户使用。
那插件代码如何编写呢?
Niushop插件代码(例举部分)
{
"code": 0,
"message": "操作成功",
"data": [{
"id": 7,
"name": "wechat",
"icon": "addon\/wechat\/icon.png",
"title": "微信公众号",
"description": "微信公众号功能",
"status": 1,
"author": "",
"version": "1.0",
"content": "",
"create_time": 1576553673
},
{
"id": 234,
"name": "cards",
"icon": "addon\/cards\/icon.png",
"title": "刮刮乐",
"description": "刮刮乐管理活动",
"status": 1,
"author": "",
"version": "1.0.1",
"content": "",
"create_time": 1595324119
}
],
"timestamp": 1595328746
}
如上代码,添加不同插件,只需在插件代码当中重复添加
{
"id": 234,
"name": "cards",
"icon": "addon\/cards\/icon.png",
"title": "刮刮乐",
"description": "刮刮乐管理活动",
"status": 1,
"author": "",
"version": "1.0.1",
"content": "",
"create_time": 1595324119
}
切记:id、title、description不能重复,要与相添加的插件名称统一,id号可以顺延下去!
插件添加之后,如何查询插件是否成功呢?同时也可检查是否添加插件成功。
{
"code": 0,
"message": "操作成功",
"data": {
"fenxiao": 1,
"pintuan": 1,
"membersignin": 1,
"memberrecharge": 1,
"memberwithdraw": 1,
"gift": 1,
"pointexchange": 1,
"city": 1,
"manjian": 1,
"memberconsume": 1,
"memberregister": 1,
"coupon": 1,
"bundling": 1,
"discount": 1,
"seckill": 1,
"topic": 1,
"store": 1,
"groupbuy": 1,
"bargain": 1,
"live": 1,
"wholesale": 1,
"servicer": 1
},
"timestamp": 1595328726
}
Niushop开源商城单商户V4系统插件,就是按照上述代码码写的,希望能够帮助到各位“码农”!
版权声明
本文为[Niushop-阿牛ger]所创,转载请带上原文链接,感谢
https://my.oschina.net/u/4513508/blog/4706860
边栏推荐
- 打工人好物——磨炼钢铁意志就要这样高效的电脑
- Epu360: all the H5 templates you want are here, e-book, big turntable, red envelope rain, questionnaire survey
- es创建新的索引库并拷贝旧的索引库 实践亲测有效!
- Utility class functions (continuous update)
- The native API of the future trend of the front end: web components
- 2020-09-09:裸写算法:两个线程轮流打印数字1-100。
- 2020-08-17:详细说下数据倾斜怎么解决?
- Junit测试出现 empty test suite
- Flink's datasource Trilogy: direct API
- Jenkins installation and deployment process
猜你喜欢

Understanding formatting principles

ES6 learning notes (3): teach you to use js object-oriented thinking to realize the function of adding, deleting, modifying and checking tab column

2020-09-04:函数调用约定了解么?

An article takes you to understand CSS3 picture border

Exclusive interview with Alibaba cloud database for 2020 PostgreSQL Asia Conference: Zeng Wenjing

Countdown | 2020 PostgreSQL Asia Conference - agenda arrangement of Chinese sub Forum

GitHub: the foundation of the front end

ado.net and asp.net The relationship between

【涂鸦物联网足迹】涂鸦云平台全景介绍

超高频RFID医疗血液管理系统应用
随机推荐
MRAM高速缓存的组成
Summary of front-end performance optimization that every front-end engineer should understand:
window系统 本机查找端口号占用方法
2020-09-09:裸写算法:两个线程轮流打印数字1-100。
August 30, 2020: naked write algorithm: the nearest common ancestor of two nodes in a binary tree.
STM32F030F4P6兼容灵动微MM32F031F4P6
list转换map(根据key来拆分list,相同key的value为一个list)
2020-08-29: process thread differences, in addition to the inclusion relationship, the underlying details?
Common mathematical basic formulas of recursive and backtracking algorithms
Python basic data type -- tuple analysis
Summary of common SQL statements
Python 100 cases
List to map (split the list according to the key, and the value of the same key is a list)
Stickinengine architecture 12 communication protocol
谷歌浏览器实现视频播放加速功能
All the way, I was forced to talk about C code debugging skills and remote debugging
Empty test suite appears in JUnit test
Zero basis to build a web search engine of its own
Small program introduction to proficient (2): understand the four important files of small program development
移动端像素适配方案