摘 要: 首先分析了当前扫码支付系统的性能需求及存在的不足,在此基础上为扫码支付系统设计了一种基于MQTT协议、SOCKS5协议和JSON数据格式的数据交互层。该交互层优化了扫码支付系统服务器与商户终端数据库之间的数据交互模式,并集成了访问代理、身份验证等多项功能,可以使系统的自动化程度进一步提高,更灵活地部署于不同的环境。实践结果表明,在广东省某连锁超市使用设置了数据交互层的扫码支付系统后,响应时间明显缩短,准确率和安全性也有较大提高。因此,该系统具有较好的推广价值。 |
关键词: 扫码支付系统;数据交互层;MQTT;SOCKS5 |
中图分类号: TP319
文献标识码: A
|
基金项目: 中国劳动关系学院科研项目(20XYJS004). |
|
Design and Application of Data-interaction Layer in QR Code-scanning Payment System based on MQTT |
CUI Yang
|
( College of Applied Technology, China University of Labor Relations, Beijing 100048, China)
cuiyang14@163.com
|
Abstract: This paper proposes to design a data-interaction layer based on MQTT (Message Queuing Telemetry Transport), SOCKS5 and JSON (JavaScript Object Notation) for QR (Quick Response) Code-scanning payment system, in view of the performance requirements and the defects of the current QR Code-scanning payment system. The proposed datainteraction layer optimizes data-interaction mode between QR code-scanning payment system server and sellers' terminal database. It also integrates multiple functions such as access agency, identity verification, etc., which further improves the automation of the system and make the system more flexible to be deployed on different occasions. Practical results show that after using a QR code-scanning payment system with data- interaction layer in a supermarket chain in Guangdong Province, the response time is significantly shortened, and the accuracy and security are also greatly improved. Therefore, the proposed system is quite worthy of promotion. |
Keywords: QR code-scanning payment system; data-interaction layer; MQTT; SOCKS5 |