Browse Source

ab server

丁云鹏 1 year ago
parent
commit
96b9a2a07e

+ 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) + "");
                     }