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

readme 中lua脚本判断条件写反了 #15

Open
Roooooobin opened this issue Sep 6, 2022 · 0 comments
Open

readme 中lua脚本判断条件写反了 #15

Roooooobin opened this issue Sep 6, 2022 · 0 comments

Comments

@Roooooobin
Copy link

readme里lua脚本
if(ticket_sold_nums > ticket_total_nums) then
return redis.call('HINCRBY', ticket_key, ticket_sold_key, 1)
end

应该是
ticket_total_nums > ticket_sold_nums
代码里是对的

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