当前位置:网站首页>How to write plug-in code of small program mall system? How to use code to check whether the plug-in is successfully added?
How to write plug-in code of small program mall system? How to use code to check whether the plug-in is successfully added?
2020-11-06 22:16:00 【Niush niuger】
Niushop Open source mall system single merchant V4 Plug-in management , There are store promotion plug-ins : bargaining 、 Combo 、 Coupon 、 Limited time discount 、 full Parcel post 、 Group purchase 、 Full reduction activities 、 Assemble 、 Time limited 、 Special activities, etc , There are interactive plug-ins for members : Squeegee 、 Smash golden eggs 、 Consumption rewards 、 Top up gift bag 、 Wedding ceremony 、 Sign in reward 、 Lucky draw and other small games to help enhance user interest , There are more application plug-ins : Electronic face sheet 、 distribution 、 Wechat circle 、 Live app 、 Shop notes 、 Small ticket printing 、 Customer service 、 Points against cash 、 Points Mall 、 Member logout and other plug-ins are convenient for users to use .
How to write plug-in code ?
Niushop Plug-in code ( Example part )
{
"code": 0,
"message": " Successful operation ",
"data": [{
"id": 7,
"name": "wechat",
"icon": "addon\/wechat\/icon.png",
"title": " WeChat official account ",
"description": " The official account of WeChat ",
"status": 1,
"author": "",
"version": "1.0",
"content": "",
"create_time": 1576553673
},
{
"id": 234,
"name": "cards",
"icon": "addon\/cards\/icon.png",
"title": " Squeegee ",
"description": " Scratch management activities ",
"status": 1,
"author": "",
"version": "1.0.1",
"content": "",
"create_time": 1595324119
}
],
"timestamp": 1595328746
}
Code above , Add different plugins , Just repeat it in the plug-in code
{
"id": 234,
"name": "cards",
"icon": "addon\/cards\/icon.png",
"title": " Squeegee ",
"description": " Scratch management activities ",
"status": 1,
"author": "",
"version": "1.0.1",
"content": "",
"create_time": 1595324119
}
Bear in mind :id、title、description Can't repeat , It should be consistent with the name of the plug-in to be added ,id The number can be postponed !
After the plug-in is added , How to query whether the plug-in is successful ? At the same time, you can check whether the plug-in is added successfully .
{
"code": 0,
"message": " Successful operation ",
"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 Open source mall single merchant V4 System plug-ins , It's written according to the above code , I hope I can help you “ Code the agriculture ”!
版权声明
本文为[Niush niuger]所创,转载请带上原文链接,感谢
边栏推荐
- Big data processing black Technology: revealing the parallel computing technology of Pb level data warehouse gaussdb (DWS)
- Understanding formatting principles
- 小熊派开发板实践:智慧路灯沙箱实验之真实设备接入
- C and C / C + + mixed programming series 5 - GC collaboration of memory management
- JS string - string string object method
- [byte jumps, autumn recruitment Posts open] ohayoo! Don't leave after school, I want to ask you to play games!!!
- 2020年新规,微信封号怎么快速解除?
- An article taught you to download cool dog music using Python web crawler
- Stm32f030f4p6 compatible with smart micro mm32f031f4p6
- Stm32f030k6t6 compatible replacement smart mm32f031k6t6
猜你喜欢
What grammar is it? ]
[forward] how to view UserData in Lua
心理咨询app开发所具备的优点与功能
2020-08-14:数据任务的执行引擎用的哪些?
September 3, 2020: naked writing algorithm: loop matrix traversal.
How to start the hidden preferences in coda 2 on the terminal?
高速公路二维码定位报警系统
Js字符串-String字符串对象方法
1万辆!理想汽车召回全部缺陷车:已发生事故97起,亏损将扩大
How to make characters move
随机推荐
NAND FLASH的接口控制设计
2020 database technology conference helps technology upgrade
插件Bilibili新版0.5.5
A good thing for working people -- to temper the will of iron and steel requires such an efficient computer
迅为-iMX6ULL开发板上配置AP热点
Those who have worked in China for six years and a million annual salary want to share these four points with you
2020-09-03:裸写算法:回形矩阵遍历。
Event monitoring problem
ImageMagick - 添加水印
Code generator plug-in and creator preform file analysis
2020-08-29: process thread differences, in addition to the inclusion relationship, the underlying details?
Practice of Xiaoxiong school development board: real equipment access of smart street lamp sandbox experiment
September 3, 2020: naked writing algorithm: loop matrix traversal.
Python 100 cases
The essence of transaction and the principle of deadlock
Experiment one
STM32F030K6T6兼容替换灵动MM32F031K6T6
STM32F030C6T6兼容替换MM32SPIN05PF
[byte jumps, autumn recruitment Posts open] ohayoo! Don't leave after school, I want to ask you to play games!!!
Exclusive interview of guests at | 2020 PostgreSQL Asia Conference: Wang Tao