diff --git a/domain/cache/groupPower_c/group_power_grade.go b/domain/cache/groupPower_c/group_power_grade.go index ce2a446ec10d9106fa29b36d0d072b18c307ddf2..ef4ea4d6c885c9f9218ee0285b3fe8434b33b8e3 100644 --- a/domain/cache/groupPower_c/group_power_grade.go +++ b/domain/cache/groupPower_c/group_power_grade.go @@ -4,6 +4,7 @@ import ( "encoding/json" "git.hilo.cn/hilo-common/domain" "git.hilo.cn/hilo-common/resource/mysql" + "github.com/go-redis/redis/v8" "hilo-group/_const/redis_key/groupPower_k" "time" ) @@ -36,7 +37,9 @@ func BLPopGroupPowerGradeExp(model *domain.Model) *GroupPowerGradeExp { queue := groupPower_k.GetGroupPowerGradeExpQueue() strs, err := model.Redis.BLPop(model, time.Second, queue).Result() if err != nil { - model.Log.Errorf("BLPopGroupPowerGradeExp fail:%v", err) + if err != redis.Nil { + model.Log.Errorf("BLPopGroupPowerGradeExp fail:%v", err) + } return nil } if len(strs) >= 2 {