Pārlūkot izejas kodu

Merge branch 'feature/dashboard'

* feature/dashboard:
  修复bug
boweniac 3 mēneši atpakaļ
vecāks
revīzija
c6b93c9d80
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      crontask/compute_statistic.go

+ 1 - 1
crontask/compute_statistic.go

@@ -367,7 +367,7 @@ func (l *CronTask) computeStatistic() {
 	// 如果添加过了就略过
 	if dayDataCount == 0 && yesterdayLastHourInt <= currentHourInt {
 		_, err = l.svcCtx.DB.UsageStatisticDay.Create().
-			SetAddtime(uint64(day)).
+			SetAddtime(uint64(yesterdayInt)).
 			SetType(1).
 			SetOrganizationID(0).
 			SetAiResponse(allDayAiResponseInt).