1. 小飞机规则修改, 稍后更新发行版. #43

2. 缓存策略将在近期添加. 这阵子忙的一地鸡毛. 不想活了
This commit is contained in:
qaiu
2024-05-30 21:52:13 +08:00
parent db7aa2f442
commit aaae7ab9a6

View File

@@ -50,7 +50,8 @@ public class FjTool extends PanBase implements IPanTool {
dataKey = CommonUtils.adaptShortPaths(SHARE_URL_PREFIX, key); dataKey = CommonUtils.adaptShortPaths(SHARE_URL_PREFIX, key);
} }
String shareId = String.valueOf(AESUtils.idEncrypt(dataKey)); // 240530 此处shareId又改为了原始的shareId, nm玩呢?
String shareId = dataKey; // String.valueOf(AESUtils.idEncrypt(dataKey));
long nowTs = System.currentTimeMillis(); long nowTs = System.currentTimeMillis();
String tsEncode = AESUtils.encrypt2Hex(Long.toString(nowTs)); String tsEncode = AESUtils.encrypt2Hex(Long.toString(nowTs));
String uuid = UUIDUtil.fjUuid(); // 也可以使用 UUID.randomUUID().toString() String uuid = UUIDUtil.fjUuid(); // 也可以使用 UUID.randomUUID().toString()
@@ -61,7 +62,7 @@ public class FjTool extends PanBase implements IPanTool {
.setTemplateParam("ts", tsEncode) .setTemplateParam("ts", tsEncode)
.send().onSuccess(r0 -> { // 忽略res .send().onSuccess(r0 -> { // 忽略res
long nowTs0 = System.currentTimeMillis(); // long nowTs0 = System.currentTimeMillis();
String tsEncode0 = AESUtils.encrypt2Hex(Long.toString(nowTs)); String tsEncode0 = AESUtils.encrypt2Hex(Long.toString(nowTs));
// 第一次请求 获取文件信息 // 第一次请求 获取文件信息
// POST https://api.feijipan.com/ws/recommend/list?devType=6&devModel=Chrome&extra=2&shareId=146731&type=0&offset=1&limit=60 // POST https://api.feijipan.com/ws/recommend/list?devType=6&devModel=Chrome&extra=2&shareId=146731&type=0&offset=1&limit=60