真实项目中使用的支付流程,主要流程如下
点击支付
||
多线程遍历购物车列表
||
多线程遍历单个购物车中的商品列表
||
遍历兑换商品(进入第三方兑换流程)
||
更新订单与购物车
||
结束
兑换/扣点/邮件均使用第三方接口,包含兑换失败重试机制,机制为最多 10 秒重试 3 次,重试中包含兑换与检验第三方订单两个 API,根据返回结果调用相关 API,重试流程图如下(简化后):
This project forked from liujinnaoheliugawa/pay-retry
真实项目的支付流程,包含购物车,订单,获取票券以及重试等,支付/扣款/邮件 均使用第三方 API
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.