boweniac 3 meses atrás
pai
commit
5c269b03af
1 arquivos alterados com 1 adições e 1 exclusões
  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).