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

逻辑问题 #1

Open
chenlangping opened this issue Jul 29, 2020 · 0 comments
Open

逻辑问题 #1

chenlangping opened this issue Jul 29, 2020 · 0 comments

Comments

@chenlangping
Copy link

在SeckillController中的miaosha方法中,先后顺序是这样的:先是把redis中的商品数量减少,然后再去判断是否已经秒杀到了,也就是可能会出现,一个用户多次重复秒杀,明明提示没买到,但是redis库存已经扣减的问题。

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

1 participant