|
|
@@ -7,20 +7,20 @@ import java.util.Objects;
|
|
|
|
|
|
public class RandomStr {
|
|
|
public static String getRandomStr(String code){
|
|
|
- List<String> list1 = List.of("07e3138d92454920b975c5a07d8c0e17", "835c9959339f495d921d6555c03aa6dc");
|
|
|
- if(Objects.isNull(code)||!list1.contains(code)){
|
|
|
- List<String> list = List.of("qq", "baidu", "weixin");
|
|
|
- String s = list.get(RandomUtil.randomInt(0, list.size()));
|
|
|
- String string = RandomUtil.randomString("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", 7);
|
|
|
- return s+"-"+string;
|
|
|
- }else {
|
|
|
- List<String> list2 = List.of("weixin.qq.com", "baidu.com", "sina.com", "qq.com", "apple.com.cn", "apple.com", "huawei.com", "mi.com", "jd.com");
|
|
|
- String s = list2.get(RandomUtil.randomInt(0, list2.size()));
|
|
|
- return s;
|
|
|
- }
|
|
|
+// List<String> list1 = List.of("07e3138d92454920b975c5a07d8c0e17", "835c9959339f495d921d6555c03aa6dc");
|
|
|
+// if(Objects.isNull(code)||!list1.contains(code)){
|
|
|
+// List<String> list = List.of("qq", "baidu", "weixin");
|
|
|
+// String s = list.get(RandomUtil.randomInt(0, list.size()));
|
|
|
+// String string = RandomUtil.randomString("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", 7);
|
|
|
+// return s+"-"+string;
|
|
|
+// }else {
|
|
|
+// List<String> list2 = List.of("weixin.qq.com", "baidu.com", "sina.com", "qq.com", "apple.com.cn", "apple.com", "huawei.com", "mi.com", "jd.com");
|
|
|
+// String s = list2.get(RandomUtil.randomInt(0, list2.size()));
|
|
|
+// return s;
|
|
|
+// }
|
|
|
|
|
|
// return s+"-"+string;
|
|
|
- // return RandomStr.getRandomStr(); String string = RandomUtil.randomString("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", 7);
|
|
|
+ return RandomUtil.randomString("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", 7);
|
|
|
}
|
|
|
|
|
|
|