diff --git a/consume/zhios_valid_user.go b/consume/zhios_valid_user.go index ea79227..2bd5b54 100644 --- a/consume/zhios_valid_user.go +++ b/consume/zhios_valid_user.go @@ -105,7 +105,7 @@ func RoutineUpdateUserComm(eg *xorm.Engine, dbName, uid string) { for k, v := range checkMap { switch k { case "taskVideo": - sum, _ := eg.Where("uid=? and task_type=?", user.Uid, 3).Sum(&model.TaskVideoNum{}, "count") + sum, _ := eg.Where("uid=? and task_type=? and task_id>0", user.Uid, 3).Sum(&model.TaskVideoNum{}, "count") if sum >= utils.AnyToFloat64(v) { todone-- }