diff --git a/app/mix/service/xxljob_tasks.go b/app/mix/service/xxljob_tasks.go index eef0e2ce..4639ab83 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 }