Davidliu 3 months ago
parent
commit
22ec0cfa84
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/core/callcenter/esl/client.py

+ 1 - 1
src/core/callcenter/esl/client.py

@@ -664,7 +664,7 @@ class OutboundClient:
                 raise BizException(BizErrorCode.RECORD_NOT_EXIST_ERROR)
             for bucket in self.buckets:
                 num = (random_id % 100 + 100) %100
-                if num >= bucket.lower and num < bucket.upper:
+                if bucket.lower <= num < bucket.upper:
                     return bucket
             return self.buckets[0]