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

with delayed queue to manage orders which didn‘t pay in the normalOrderOvertime of order setting #201

Closed
wants to merge 2 commits into from

Conversation

zhjdotxmsme
Copy link

问题
之前通过定时器去定时检查超时时间之前下的订单,如果没支付则取消该订单,不能保证未支付订单在相同的时间内被取消订单,例如有的是15分钟未支付就被取消订单,有的是20分钟,因离定时器的时间而不同;
解决办法
将订单放入到延时队列,在orderSetting设定的一般订单的实效时间,对未支付的订单进行取消,可以实现未支付的订单在相同的时间内会被取消。

@zhjdotxmsme zhjdotxmsme changed the title 通过延时队列替代之前定时器实现超时时间之前下的订单,如果没支付则取消该订单的需求 with delayed queue to manage orders which didn‘t pay in the normalOrderPayTimeout of order setting Sep 12, 2019
@zhjdotxmsme zhjdotxmsme changed the title with delayed queue to manage orders which didn‘t pay in the normalOrderPayTimeout of order setting with delayed queue to manage orders which didn‘t pay in the normalOrderOvertime of order setting Sep 12, 2019
@zhjdotxmsme zhjdotxmsme closed this Dec 9, 2019
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

Successfully merging this pull request may close these issues.

1 participant