当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- “非洲用户的付费意愿并不低”——专访四达时代研发总监张亮
- 2020-08-29: process thread differences, in addition to the inclusion relationship, the underlying details?
- 小熊派开发板实践:智慧路灯沙箱实验之真实设备接入
- Bluetooth broadcast chip for Shanghai giant micro
- 汽车维修app开发的好处与功能
- ado.net and asp.net The relationship between
- How to make characters move
- Understanding formatting principles
- Can you do it with only six characters?
- How does cglib implement multiple agents?
猜你喜欢
Design of NAND flash interface control
Introduction to Huawei cloud micro certification examination
Code generator plug-in and creator preform file analysis
Windows 10 Bluetooth management page 'add Bluetooth or other devices' option click no response solution
How much disk space does a file of 1 byte actually occupy
Common syntax corresponding table of mongodb and SQL
Stm32f030c6t6 compatible to replace mm32spin05pf
Why is the LS command stuck when there are too many files?
What grammar is it? ]
如何创建交互式内核密度图表
随机推荐
Windows 10 Bluetooth management page 'add Bluetooth or other devices' option click no response solution
How to make characters move
[doodling the footprints of Internet of things] Introduction to Internet of things
Event monitoring problem
Understanding formatting principles
Why is the LS command stuck when there are too many files?
[self taught unity2d legendary game development] map editor
汽车维修app开发的好处与功能
Es create a new index database and copy the old index library, practice pro test effective!
JS array the usage of array is all here (array method reconstruction, array traversal, array de duplication, array judgment and conversion)
Flink's datasource Trilogy: direct API
C and C / C + + mixed programming series 5 - GC collaboration of memory management
2020-08-29: process thread differences, in addition to the inclusion relationship, the underlying details?
非易失性MRAM存储器应用于各级高速缓存
超高频RFID医疗血液管理系统应用
All the way, I was forced to talk about C code debugging skills and remote debugging
Reserved battery interface, built-in charge and discharge circuit and electricity meter, quickly help easily handle hand-held applications
#JVM 类加载机制
2020-08-15: under what circumstances should data tasks be optimized?
2020-08-19:TCP是通过什么机制保障可靠性的?