1. add 城通网盘解析(慢速) https://www.ctfile.com

2. 优化解析接口的实现
This commit is contained in:
QAIU
2024-10-09 15:33:33 +08:00
parent 2b6138a889
commit 44714aa981
24 changed files with 229 additions and 46 deletions

View File

@@ -0,0 +1,22 @@
package cn.qaiu.util;
import java.security.SecureRandom;
public class RandomStringGenerator {
private static final String CHARACTERS = "abcdefghijklmnopqrstuvwxyz0123456789";
private static final int LENGTH = 13; // 每段长度为13
public static String generateRandomString() {
SecureRandom random = new SecureRandom();
StringBuilder sb = new StringBuilder();
for (int i = 0; i < 2; i++) { // 生成两段
for (int j = 0; j < LENGTH; j++) {
int index = random.nextInt(CHARACTERS.length());
sb.append(CHARACTERS.charAt(index));
}
}
return sb.toString();
}
}