{"id":18859021,"url":"https://github.com/rawchen/alipan","last_synced_at":"2025-06-28T01:02:11.764Z","repository":{"id":50504181,"uuid":"421882784","full_name":"rawchen/alipan","owner":"rawchen","description":"阿里云盘列表程序 - Spring Boot","archived":false,"fork":false,"pushed_at":"2025-06-21T03:01:03.000Z","size":529,"stargazers_count":197,"open_issues_count":4,"forks_count":8,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-21T03:37:55.872Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pan.rawchen.com","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rawchen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-10-27T15:56:44.000Z","updated_at":"2025-06-21T02:50:22.000Z","dependencies_parsed_at":"2024-03-19T14:59:11.739Z","dependency_job_id":"f9459147-3466-4958-8c96-7a1badba03f9","html_url":"https://github.com/rawchen/alipan","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/rawchen/alipan","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rawchen%2Falipan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rawchen%2Falipan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rawchen%2Falipan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rawchen%2Falipan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rawchen","download_url":"https://codeload.github.com/rawchen/alipan/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rawchen%2Falipan/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262357495,"owners_count":23298457,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T04:15:41.400Z","updated_at":"2025-06-28T01:02:11.716Z","avatar_url":"https://github.com/rawchen.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 阿里云盘列表程序 - Spring Boot\n\n## 演示及开发环境\n\n\u003e https://pan.rawchen.com\n\u003e\n\u003e JDK 8 + IDEA\n\n## 使用\n\n* 确保JRE8及以上环境，在[releases](https://github.com/rawchen/alipan/releases)页面下载最新jar运行文件（最好下载最新源码后mvn打包）。\n* 通过`java -jar alipan.jar`运行该程序，默认访问地址：[http://localhost:8899](http://localhost:8899)。\n* 通过以下方法拿到token文本后，粘贴到jar包同路径下生成的配置文件`open-token.txt`和`original-token.txt`中（开发则为项目根目录）。\n\n**refresh_token获取方法(两个都要获取一次)：**\n\u003e https://pan.rawchen.com/open_token \u003cbr\u003e https://pan.rawchen.com/original_token\n\n## 开发\n\n* 确保JDK8及以上环境，下载项目后通过IDEA打开，可配置application.yml中的端口号等，通过Maven打包jar运行，没有IDEA也可配置Maven命令执行`mvn clean package`。\n\n\n## 功能（持续开发中）\n* - [x] Thymeleaf模板引擎\n* - [x] 展示文件夹与文件列表\n* - [x] 文件在线查看（各类图片、文档、文本、音频、视频、PDF等）\n* - [x] 分享链接\n* - [x] 目录树\n* - [x] README.md\n* - [x] 目录树监听\n* - [x] 右键弹出菜单\n* - [x] 文件夹加密\n* - [x] 后台自定义配置\n* - [x] 后退监听\n* - [x] RefreshToken续期\n* - [x] 手机谷歌、夸克浏览器下载\n* - [x] 调用PotPlayer\n* - [x] 调用迅雷下载\n* - [x] 缩略/列表模式切换\n* - [ ] 批量下载\n* - [ ] 批量压缩下载\n* - [ ] 图片目录上下一张\n\n## 高级\n\n使用时如需对文件夹进行描述说明，渲染Markdown。可在此文件夹内上传名为`README.md`的文件（不区分大小写）。\n\n使用时如需密码保护一个文件夹及可在电脑上创建名为`password`的无任何后缀的文本文件，并通过记事本打开输入你要设定的密码。然后上传到云盘需要加密的文件夹内。开发时在`application.yml`可自定义加密文件的名称。\n\n开发时在`application.yml`中你可以自定义`parent_file_id`(要展示的根文件夹id，可通过对文件夹鼠标右键点击分享粘贴链接后查看id，默认为整个云盘根目录root)。\n\n## 问题反馈\n\nQ: 为什么要获取两个refresh_token存到两个文件？\n\u003cbr\u003e\nA: 因为云盘开放平台支持标准OAuth2.0授权协议管理，易于管理大部分接口，所以使用的开放平台应用授权。但是原生文档预览接口开放平台并不提供需要原生接口支持，所以要获取原生refresh_token。\n\n## 案例截图\n\n![](https://cdn.jsdelivr.net/gh/rawchen/JsDelivr/static/AliPan/01.png)\n\n![](https://cdn.jsdelivr.net/gh/rawchen/JsDelivr/static/AliPan/02.png)\n\n![](https://cdn.jsdelivr.net/gh/rawchen/JsDelivr/static/AliPan/03.png)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frawchen%2Falipan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frawchen%2Falipan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frawchen%2Falipan/lists"}