Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

订单取消支付的时候,订单有效期是30分钟,如果在剩余20分钟的时候取消支付,优惠券状态复原成可用状态,是不是 就会错误1小时的优惠券轮训? #472

Open
UncleHope opened this issue Apr 1, 2021 · 1 comment

Comments

@UncleHope
Copy link

//返还优惠券
wxOrderService.releaseCoupon(orderId);

@liyang-it
Copy link

建议用redis存储待付款订单信息。监听 过期 订单key 在进行逻辑操作。只有正在付款成功才 更新优惠券这些信息

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants