|
@@ -148,11 +148,6 @@ func QueryUserStaticDataPage(ctx *context.Context) { |
|
|
|
|
|
|
|
|
func TimingCountDataByDateAndReCount(date string, isReCount bool) { |
|
|
func TimingCountDataByDateAndReCount(date string, isReCount bool) { |
|
|
|
|
|
|
|
|
if date == "refreshAll" { |
|
|
|
|
|
models.RefreshUserStaticAllTabel() |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
t, _ := time.Parse("2006-01-02", date) |
|
|
t, _ := time.Parse("2006-01-02", date) |
|
|
startTime := time.Date(t.Year(), t.Month(), t.Day(), 0, 0, 0, 0, t.Location()) |
|
|
startTime := time.Date(t.Year(), t.Month(), t.Day(), 0, 0, 0, 0, t.Location()) |
|
|
|
|
|
|
|
@@ -205,10 +200,9 @@ func TimingCountDataByDateAndReCount(date string, isReCount bool) { |
|
|
log.Error("count user info error." + err.Error()) |
|
|
log.Error("count user info error." + err.Error()) |
|
|
mailer.SendWarnNotifyMail(setting.Warn_Notify_Mails, warnEmailMessage) |
|
|
mailer.SendWarnNotifyMail(setting.Warn_Notify_Mails, warnEmailMessage) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if isReCount { |
|
|
|
|
|
models.RefreshUserStaticAllTabel() |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
log.Info("start to count all user info data") |
|
|
|
|
|
//models.RefreshUserStaticAllTabel(wikiMap) |
|
|
|
|
|
log.Info("end to count all user info data") |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func TimingCountDataByDate(date string) { |
|
|
func TimingCountDataByDate(date string) { |
|
|