From 35d63ff46ab1baee802ea488ccf1d3ab24fe0c16 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Wed, 8 May 2024 10:43:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- consume/zhios_valid_user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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-- }