微信小店三方通知功能开发与实现

2016-07-09 08:21薛艳锋王三虎刘继华高永强兰静
软件导刊 2016年6期

薛艳锋 王三虎 刘继华 高永强 兰静

摘要:随着微信用户井喷式增长,微信小店发展迅速。微信小店可给顾客发送购物成功通知,但却无法推送个性化消息,也无法通过微信及时获取交易情况,发货员无法在第一时间发货。针对这种情况,提出一种在微信小店上实现三方通知功能。该方法首先通过订单通知解析微信服务器发送的XML文件,然后通过ID获取订单详情,最后利用腾讯提供的模板消息、多功能客服接口实现对应消息的推送。实验结果表明,该功能可使顾客、商户、发货员及时准确得到通知,提高了顾客的购物体验以及微信小店的发货速度。

关键词:微信小店;接口开发;JSON;PHP

DOIDOI:10.11907/rjdk.161173

中图分类号:TP319文献标识码:A文章编号:1672-7800(2016)006-0093-04

参考文献:

[1]ZHENG Z,ZHANG Q,WANG B. Research on model of online knowledge sharing for CoPS R&D team based on WeChat platform[C]2.014 International Conference on Management Science & Engineering (21th),Helsinki,Finland: IEEE Computer Society,2014.

[2]XU J, KANG Q, SONG Z,et al.Applications of mobile social media: WeChat among academic libraries in China[J].The Journal of Academic Librarianship.2015,41(1):21-30.

[3]HUANG L, ZHU Q, DING J,et al.Design and realization of technology intelligence push based on wechat[C].3rd International Conference on Information Technology and Management Innovation,Shenzhen, China: Trans Tech Publications Ltd,2014.

[4]DU Z. Research into factors affecting the attitudes of university students towards WeChat marketing based on AISAS mode[C].2015 1st International Conference on Futuristic Trends in Computational Analysis and Knowledge Management,Greater Noida, India: Institute of Electrical and Electronics Engineers Inc,2015.

[5]王琰.“微信小店”上线 腾讯移动端在复制淘宝[N].中国商报,2014-06-13.

[6]纪亚利.首个收入破万的微信小店[J].劳动保障世界,2014,36(8):36-37.

[7]张玮炜,刘冲.浅析微信平台的商机[J].黑龙江科技信息,2014 (22):176-177.

[8]陈甫.微信小店服务端的JAVA实现[J].电脑知识与技术,2014, 10(19):4442-4445.

[9]方倍工作室.微信公众平台开发最佳实践[M].北京:机械工业出版社,2014.

[10]腾讯.微信模板消息开发接口[EB/OL].[2015-12-01] https://mp.weixin.qq.com/advanced/tmplmsg?action=faq&token=1421451201〈=zh_CN.

[11]腾讯.微信公众平台多客服接口文档[EB/OL]. [2015-12-01].http://mp.weixin.qq.com/wiki/5/ae230189c9bd07a6b221f486 19aeef35.html

[12]腾讯.微信小店API手册V1.12[EB/OL].[2015-12-01].https://mp.weixin.qq.com/cgi-bin/readtemplate?t=news/note-goodshelf-func_tmpl〈=zh_CN

[13]方倍工作室.微信公众平台开发最佳实践[M].北京:机械工业出版社,2014.