From 66270eb80d9d1b712de8eb9b7f22a374cf94b7cc Mon Sep 17 00:00:00 2001 From: Leufolium Date: Thu, 27 Jun 2024 15:20:21 +0800 Subject: [PATCH] by Robin at 20240627 --- app/mix/service/xxljob_tasks.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/mix/service/xxljob_tasks.go b/app/mix/service/xxljob_tasks.go index 5b957451..9294aafd 100644 --- a/app/mix/service/xxljob_tasks.go +++ b/app/mix/service/xxljob_tasks.go @@ -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 } -- 2.41.0