Browse Source

修复bug

boweniac 3 months ago
parent
commit
5c269b03af
1 changed files with 1 additions and 1 deletions
  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).