|
@@ -2,6 +2,7 @@ package consume |
|
|
|
|
|
|
|
|
import ( |
|
|
import ( |
|
|
"applet/app/db" |
|
|
"applet/app/db" |
|
|
|
|
|
"applet/app/db/model" |
|
|
"applet/app/utils" |
|
|
"applet/app/utils" |
|
|
"applet/app/utils/logx" |
|
|
"applet/app/utils/logx" |
|
|
"applet/consume/md" |
|
|
"applet/consume/md" |
|
@@ -103,6 +104,11 @@ func RoutineUpdateUserComm(eg *xorm.Engine, dbName, uid string) { |
|
|
|
|
|
|
|
|
for k, v := range checkMap { |
|
|
for k, v := range checkMap { |
|
|
switch k { |
|
|
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": |
|
|
case "realCheck": |
|
|
// 检查实名认证 |
|
|
// 检查实名认证 |
|
|
one, _ := db.GetRealNameAuthByUidWithState(eg, user.Uid, 1) |
|
|
one, _ := db.GetRealNameAuthByUidWithState(eg, user.Uid, 1) |
|
|