by Robin at 20240627 #561

Merged
chenhao merged 1 commits from BUG-20240627-Robin into test 2024-06-27 15:21:06 +08:00
1 changed files with 4 additions and 2 deletions

View File

@ -94,7 +94,8 @@ func (s *CronService) CreateDailyStatement(ctx context.Context, param *xxl.RunRe
if h5countStr == "" {
h5countStr = "0"
}
count, err := strconv.Atoi(h5countStr)
h5countStr = strings.ReplaceAll(h5countStr, "\n", "")
count, _ := strconv.Atoi(h5countStr)
count = count / 2
h5querycount += count
@ -105,7 +106,8 @@ func (s *CronService) CreateDailyStatement(ctx context.Context, param *xxl.RunRe
if byUserIdCountStr == "" {
byUserIdCountStr = "0"
}
count, err = strconv.Atoi(byUserIdCountStr)
byUserIdCountStr = strings.ReplaceAll(byUserIdCountStr, "\n", "")
count, _ = strconv.Atoi(byUserIdCountStr)
count = count / 2
zoneListFromOusideCount += count
}