浏览代码

ab server

丁云鹏 1 年之前
父节点
当前提交
96b9a2a07e
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      abtest-service/src/main/java/com/tzld/piaoquan/abtest/service/GroupService.java

+ 2 - 1
abtest-service/src/main/java/com/tzld/piaoquan/abtest/service/GroupService.java

@@ -12,6 +12,7 @@ import org.apache.commons.collections4.CollectionUtils;
 import org.apache.commons.collections4.MapUtils;
 import org.apache.commons.lang.RandomStringUtils;
 import org.apache.commons.lang3.RandomUtils;
+import org.apache.commons.lang3.StringUtils;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.beans.factory.annotation.Qualifier;
 import org.springframework.data.redis.core.RedisTemplate;
@@ -92,7 +93,7 @@ public class GroupService {
                     groupMap.put(layer.getLayerId(), RandomUtils.nextInt(0, bucketNum) + "");
                 } else {
                     String policy = groupRule.get(scene);
-                    if (org.apache.commons.lang.StringUtils.isBlank(policy)) {
+                    if (StringUtils.isBlank(policy)) {
                         // random
                         groupMap.put(layer.getLayerId(), RandomUtils.nextInt(0, bucketNum) + "");
                     }