|
|
@@ -2,6 +2,7 @@ package consume |
|
|
|
|
|
|
|
import ( |
|
|
|
"applet/app/db" |
|
|
|
"applet/app/db/model" |
|
|
|
"applet/app/utils" |
|
|
|
"applet/app/utils/logx" |
|
|
|
"applet/consume/md" |
|
|
@@ -103,6 +104,11 @@ 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") |
|
|
|
if sum >= utils.AnyToFloat64(v) { |
|
|
|
todone-- |
|
|
|
} |
|
|
|
case "realCheck": |
|
|
|
// 检查实名认证 |
|
|
|
one, _ := db.GetRealNameAuthByUidWithState(eg, user.Uid, 1) |
|
|
|