Compare commits

..
Author SHA1 Message Date
cursor[bot] 4361d96c52 Merge pull request #312 from qaiu/cursor/release-v0413-5597
release: v0.4.13
2026-11-25 16:19:59 +00:00
Cursor Agentandqaiu 971cdcd067 release: v0.4.13
Bump the app version for ajaxfiles.php file pages (#310) and the
loaded-file name filter (#311). The release notes state that winx123
was fully downloaded, the three comparison links were Range-only, and
the filter UI was checked on a local fixture rather than a live share.

Co-authored-by: qaiu <[email protected]>
2026-11-25 16:15:53 +00:00
cursor[bot] 4b9339072a Merge pull request #311 from qaiu/cursor/folder-name-filter-91fc
web: 按已加载文件名筛选,并限制目录树全选范围
2026-11-25 16:14:54 +00:00
6 changed files with 24 additions and 27 deletions

No files matched your search

+2 -2
View File
@@ -25,8 +25,8 @@ body:
id: version
attributes:
label: 版本号
description: 页面上的版本,或发布包名里的版本,例如 0.4.12。
placeholder: "0.4.12"
description: 页面上的版本,或发布包名里的版本,例如 0.4.13。
placeholder: "0.4.13"
validations:
required: true
- type: dropdown
+2 -2
View File
@@ -25,8 +25,8 @@ body:
id: version
attributes:
label: 版本号
description: 例如 0.4.12。不确定就写获取方式。
placeholder: "0.4.12"
description: 例如 0.4.13。不确定就写获取方式。
placeholder: "0.4.13"
validations:
required: true
- type: dropdown
+17 -20
View File
@@ -1,25 +1,22 @@
## 更新内容
目录列表支持分页了。之前蓝奏云目录只返回前 50 个文件,小飞机盘和蓝奏云优享只返回前 60 个。早先的分页需求见 https://github.com/qaiu/netdisk-fast-download/issues/112 。
- 目录分页(#308):
- 蓝奏云:按页读取 `filemoreajax`,每页 50 个。只有 `zt=2`(翻过最后一页)或不足 50 个的页才算结束。`zt=4`「请刷新,重试0」视为限流,同一页等 2 秒、再等 5 秒重试;仍失败就返回可重试的错误,不当作最后一页。每页返回 `nextCursor`,下一页沿用同一组翻页参数。不带游标时最多直接请求到第 6 页。
- 小飞机盘、蓝奏云优享:`offset` 作为页码,每页 60 个,由 `totalPage` / `total` 判断是否还有下一页。
- 新接口 `/v2/getFileListPage` 返回 `list`、`hasMore`、`nextPage`、`nextCursor`、`total`、`totalPage`。`/v2/getFileList` 也接受 `page`(或 `pg`)和 `pageCursor`。不带页码时返回结构和以前一样。不支持分页的网盘请求第 2 页及以后时返回空页。
- 前端:目录面板和树形视图有「加载更多」,滚动到底也会自动加载下一页。已加载的文件会保留,加载失败时显示错误并停止自动加载,点击可重试。`list.html` 同样支持。
- 蓝奏云目录风控页(#307):目录分享页改用移动端 UA 请求,文件页仍用桌面 UA。如果仍返回空白风控页,提示「访问风控,不能据此判断分享已失效」,不再报成分享已失效。
- 新增 Issue 表单:解析失败、运行问题、功能建议(#305)。
## 实测范围
- 蓝奏云 `pan.lanzoui.com/b66477`:连续翻完 93 页,共 4598 个文件,没有重复,最后一页 9 个且 `hasMore=false`。实测遇到 `zt=4` 时,2 秒后重试成功。第 2 页的文件可以下载。
- 蓝奏云带密码目录 `moteam.lanzoum.com/b00yaejvte`(密码 `1234`):第 1 页 7 个且没有下一页,第 2 页为空。不带页码的旧接口仍返回 7 个。
- 蓝奏云优享:用真实小目录、把每页条数临时设为 1 来验证。`offset` 是从 1 开始的页码,`total` / `totalPage` 正确,翻过最后一页为空。
- 夸克、城通:目录列表和以前一样,请求第 2 页返回空页。
- 蓝奏文件页识别 `ajaxfiles.php`(#310):
- 单文件页 iframe 里的下载 ajax 写成了 `/ajaxfiles.php`。解析器原来只认 `ajaxm.php` 和 `ajaxfile.php`,匹配不上就报「获取失败0, 可能分享已失效」。表单字段没有改。
- `https://njkn.lanzouw.com/winx123`(无密码)没有失效。修复后本机完整下载 1,197,569 字节,`unzip -t` 无错误。
- 另外三个同样改成 `ajaxfiles.php` 的对照只各下载了 1 MiB Range,返回 206,文件头分别是 7z、zip、zip,没有做完整下载:
- `wwn.lanzouy.com/ihLkw1gezutg`
- b66477 目录下的 `pan.lanzoui.com/io4y41i3zq5e`
- 密码目录 `b00yaejvte` 里的子文件 `w1.lanzn.com/i4VjZ332qzwh`
- 带密码的单文件分享没有找到公开样例,没有实测。
- 目录按已加载文件名筛选(#311):
- 分享目录浏览器和首页解析后的目录共用目录树。两套视图以及独立的 `list.html` 按文件名做大小写不敏感的子串匹配,只筛已经加载的行,不把后续页自动拉完。
- 目录树底部「全选 / 取消全选」只作用于当前关键字命中的、已经加载的可选文件。不勾选被筛掉的项,不拉取未加载分页,也不清掉范围外原来的选择。
- 分页仍走现有的 `nextCursor` / `pageCursor`。
- 界面验收跑在本机开发服务和本机夹具,不是线上分享页。
## 限制
- 小飞机盘没有可用的真实目录样本,只做了本地模拟测试(与蓝奏云优享是同一套接口)。
- 蓝奏云优享没有实测超过 60 个文件的大目录。
- 蓝奏云不带游标直接请求第 7 页及以后会提示需要游标,请按 `nextCursor` 顺序翻页。
- 风控页提示只能说明这次请求被拦截,不代表分享一定有效。
- 没有把这次界面验收当成线上分享页或全站界面已验。
- 三个对照链接只验证了 1 MiB Range,不能据此说这些文件已经完整下载并核对。
- 带密码的单文件分享未测。
- 本机访问部分蓝奏下载域时连接时好时坏。winx123 曾连续超时,重试后完整下载成功。
+1 -1
View File
@@ -470,7 +470,7 @@ docker run --rm -v /var/run/docker.sock:/var/run/docker.sock containrrr/watchtow
> 注意: netdisk-fast-download.service中的ExecStart的路径改为实际路径
```shell
cd ~
wget -O netdisk-fast-download.zip https://github.com/qaiu/netdisk-fast-download/releases/download/v0.4.12/netdisk-fast-download-linux-amd64.zip
wget -O netdisk-fast-download.zip https://github.com/qaiu/netdisk-fast-download/releases/download/v0.4.13/netdisk-fast-download-linux-amd64.zip
unzip netdisk-fast-download.zip
cd netdisk-fast-download
bash service-install.sh
+1 -1
View File
@@ -17,7 +17,7 @@
</modules>
<properties>
<revision>0.4.12</revision>
<revision>0.4.13</revision>
<java.version>17</java.version>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "nfd-web",
"version": "0.4.12",
"version": "0.4.13",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",