|
@@ -139,7 +139,15 @@ func CommUplv(params map[string]string, blockStarChain string, eg *xorm.Engine, |
|
|
} |
|
|
} |
|
|
eg.Where("uid=?", user.Uid).Cols("date").Update(&model.OneCirclesUserLvTime{Date: time.Now()}) |
|
|
eg.Where("uid=?", user.Uid).Cols("date").Update(&model.OneCirclesUserLvTime{Date: time.Now()}) |
|
|
AutoAudit = 1 |
|
|
AutoAudit = 1 |
|
|
|
|
|
var task model.UserLevelUpgradeTask |
|
|
|
|
|
eg.Where("scheme_id=? and task_type=22", DataDetail.AgentType).Get(&task) |
|
|
|
|
|
if task.Id > 0 { |
|
|
|
|
|
eg.Where("uid=?", uid).Cols("is_not_down").Update(&model.User{IsNotDown: 0}) |
|
|
|
|
|
} else { |
|
|
|
|
|
eg.Where("uid=?", uid).Cols("is_not_down").Update(&model.User{IsNotDown: 1}) |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
return result, AutoAudit |
|
|
return result, AutoAudit |
|
|
} |
|
|
} |
|
@@ -377,7 +385,6 @@ func GetFinishCount(params map[string]string, blockStarChain string, engine *xor |
|
|
if lvTime != nil && lvTime.Date.IsZero() == false { |
|
|
if lvTime != nil && lvTime.Date.IsZero() == false { |
|
|
stime = lvTime.Date.Format("2006-01-02") |
|
|
stime = lvTime.Date.Format("2006-01-02") |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
etime := t.Format("2006-01-02") |
|
|
etime := t.Format("2006-01-02") |
|
|
if params["is_view"] == "1" { |
|
|
if params["is_view"] == "1" { |
|
|
if lvTime == nil || (lvTime != nil && lvTime.Date.IsZero()) { |
|
|
if lvTime == nil || (lvTime != nil && lvTime.Date.IsZero()) { |
|
|