🐛 Fix validate condition issue

This commit is contained in:
LittleSheep 2024-08-01 23:55:33 +08:00
parent 817c573048
commit 7a072988ce

View File

@ -26,7 +26,7 @@ func ValidateAccountName(val string, min, max int) bool {
actualLength += 1
}
}
return min > actualLength && actualLength < max
return actualLength >= min && max >= actualLength
}
func GetAccount(id uint) (models.Account, error) {