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

panic: num range must be between 0 to 100 #83

Open
hanwenbo opened this issue Nov 5, 2024 · 3 comments
Open

panic: num range must be between 0 to 100 #83

hanwenbo opened this issue Nov 5, 2024 · 3 comments

Comments

@hanwenbo
Copy link
Contributor

hanwenbo commented Nov 5, 2024

func HCode(num int) int {
	if num > 99 || num < 1 {
		panic("num range must be between 0 to 100")
	}
	return 20000 + num*100
}

可以改大点吗 因为模块多了 100不够用的 希望支持到1000,比如订单的有日志/退款/会员卡/优惠券/满减送/分佣等等 现在我就不够用了

@zhufuyi
Copy link
Collaborator

zhufuyi commented Nov 5, 2024

好的,修改为一个项目默认扩展到1000个表

@hanwenbo
Copy link
Contributor Author

hanwenbo commented Nov 5, 2024

好的谢谢啦

@hanwenbo hanwenbo closed this as completed Nov 6, 2024
@hanwenbo hanwenbo reopened this Nov 9, 2024
@hanwenbo
Copy link
Contributor Author

大佬 这个急需 我需要如何在你没发布新版本的时候提前用上呢 是自己fork一下吗

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