|
@@ -105,7 +105,7 @@ func RoutineUpdateUserComm(eg *xorm.Engine, dbName, uid string) { |
|
|
for k, v := range checkMap { |
|
|
for k, v := range checkMap { |
|
|
switch k { |
|
|
switch k { |
|
|
case "taskVideo": |
|
|
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) { |
|
|
if sum >= utils.AnyToFloat64(v) { |
|
|
todone-- |
|
|
todone-- |
|
|
} |
|
|
} |
|
|