refactor: 移除冗余错误日志并优化缓存获取逻辑

This commit is contained in:
TsMask
2025-03-03 18:06:30 +08:00
parent c286e68845
commit 2829361748
4 changed files with 11 additions and 8 deletions

View File

@@ -42,7 +42,6 @@ func (r *UDMAuthUser) SelectPage(query map[string]string) (int64, []model.UDMAut
// 查询数量 长度为0直接返回
if err := tx.Count(&total).Error; err != nil || total <= 0 {
logger.Errorf("total err => %v", err)
return total, rows
}