Davidliu 3 月之前
父節點
當前提交
22ec0cfa84
共有 1 個文件被更改,包括 1 次插入1 次删除
  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]