|
|
@@ -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-- |
|
|
|
} |
|
|
|