🐛 Trying to fix some bugs

This commit is contained in:
LittleSheep 2025-02-17 23:36:07 +08:00
parent badae3aa0d
commit 59e1bf1ddf

View File

@ -42,6 +42,9 @@ func getUserInBatch(c *fiber.Ctx) error {
if len(nameList) > 0 { if len(nameList) > 0 {
tx = tx.Or("name IN ?", nameList) tx = tx.Or("name IN ?", nameList)
} }
if len(nameList) == 0 && len(numericList) == 0 {
return c.JSON([]models.Account{})
}
var accounts []models.Account var accounts []models.Account
if err := tx. if err := tx.