🐛 Fix random panic

This commit is contained in:
2024-12-05 13:09:52 +08:00
parent 50498976af
commit 77c543f88e
2 changed files with 5 additions and 5 deletions

View File

@ -41,7 +41,7 @@ func CheckIn(user models.Account) (models.CheckInRecord, error) {
expMin := 100
record := models.CheckInRecord{
ResultTier: tier,
ResultExperience: rand.Intn(expMax-expMin) + expMin,
ResultExperience: rand.Intn(expMax+1-expMin) + expMin,
AccountID: user.ID,
}