{"id":13525298,"url":"https://github.com/ichenhe/halo-lsky-pro","last_synced_at":"2026-01-22T01:08:23.330Z","repository":{"id":235914644,"uuid":"791526454","full_name":"ichenhe/halo-lsky-pro","owner":"ichenhe","description":"集成 Lsky Pro 兰空图床作为 Halo 的存储后端。","archived":false,"fork":false,"pushed_at":"2026-01-21T00:09:39.000Z","size":200,"stargazers_count":11,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-21T10:51:01.147Z","etag":null,"topics":["halo","halo-plugin","lsky-pro"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ichenhe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2024-04-24T21:54:16.000Z","updated_at":"2026-01-21T00:08:23.000Z","dependencies_parsed_at":"2024-05-01T12:35:28.241Z","dependency_job_id":"ec4a3440-b3de-4158-b622-ba39ebed58cb","html_url":"https://github.com/ichenhe/halo-lsky-pro","commit_stats":null,"previous_names":["ichenhe/halo-lsky-pro"],"tags_count":4,"template":false,"template_full_name":"halo-dev/plugin-starter","purl":"pkg:github/ichenhe/halo-lsky-pro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ichenhe%2Fhalo-lsky-pro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ichenhe%2Fhalo-lsky-pro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ichenhe%2Fhalo-lsky-pro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ichenhe%2Fhalo-lsky-pro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ichenhe","download_url":"https://codeload.github.com/ichenhe/halo-lsky-pro/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ichenhe%2Fhalo-lsky-pro/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28648491,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T21:29:11.980Z","status":"ssl_error","status_checked_at":"2026-01-21T21:24:31.872Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["halo","halo-plugin","lsky-pro"],"created_at":"2024-08-01T06:01:17.513Z","updated_at":"2026-01-22T01:08:23.319Z","avatar_url":"https://github.com/ichenhe.png","language":"Java","funding_links":[],"categories":["Halo 2.0"],"sub_categories":["插件"],"readme":"\u003cdiv align=\"center\"\u003e\n    \u003cimg alt=\"logo\" width=\"106px\" src=\"https://github.com/ichenhe/halo-lsky-pro/assets/10266066/9dc173b0-d95e-457d-ba33-9eb2ad3e1f93\"\u003e\n    \u003ch1\u003eHalo - Lsky Pro\u003c/h1\u003e\n    \u003cp\u003e集成 \u003ca href=\"https://www.lsky.pro/\"\u003eLsky Pro\u003c/a\u003e 兰空图床作为 \u003ca href=\"https://www.halo.run/\"\u003eHalo\u003c/a\u003e 的存储后端。\u003c/p\u003e\n    \u003cp align=\"center\"\u003e\n        \u003ca href=\"https://www.halo.run/store/apps/app-jZHhX?tab=readme\"\u003e\u003cimg alt=\"Halo App Store\" src=\"https://img.shields.io/badge/Halo-%E5%BA%94%E7%94%A8%E5%B8%82%E5%9C%BA-%230A81F5?style=flat-square\u0026logo=appstore\u0026logoColor=%23fff\" /\u003e\u003c/a\u003e\n        \u003ca href=\"//github.com/ichenhe/halo-lsky-pro/releases\"\u003e\u003cimg alt=\"GitHub Release\" src=\"https://img.shields.io/github/v/release/ichenhe/halo-lsky-pro?style=flat-square\u0026logo=github\" /\u003e\u003c/a\u003e\n        \u003ca href=\"//github.com/ichenhe/halo-lsky-pro/actions/workflows/ci.yaml\"\u003e\u003cimg alt=\"GitHub Actions Workflow Status\" src=\"https://img.shields.io/github/actions/workflow/status/ichenhe/halo-lsky-pro/ci.yaml?style=flat-square\u0026label=build\" /\u003e\u003c/a\u003e\n        \u003ca href=\"./LICENSE\"\u003e\u003cimg alt=\"GitHub License\" src=\"https://img.shields.io/github/license/ichenhe/halo-lsky-pro?style=flat-square\" /\u003e\u003c/a\u003e\n    \u003c/p\u003e\n\n\u003c/div\u003e\n\n局限性：\n\n- 仅支持 Lsky Pro v2，不支持旧版本。\n- 由于 Lsky Pro 限制，仅支持上传图片类附件。（不影响上传任意文件到其他存储策略）\n- 由于 Lsky Pro 限制，若启用图床端格式转换（图片压缩）将导致 Halo 中显示的附件大小不正确。\n\n## 📖 使用说明\n\n本插件无需设置，安装后请到 Halo 后台「附件 - 存储策略」处添加策略。\n\n### API Token\n\nLsky Pro v2 后台没有生成 Token 功能，必须通过请求 API 接口获得。具体接口定义在 Lsky Pro 后台可以看到。\n\n#### cURL 方式\n\n若计算机已安装 curl 则可以通过命令行获取：\n\n```bash\ncurl --location --request POST 'https://example.com/api/v1/tokens' \\\n--form 'email=\"your-email\"' \\\n--form 'password=\"your-password\"'\n```\n\n#### 在线 HTTP 请求工具\n\n例如 [Getman](https://getman.cn/):\n\n![](https://github.com/ichenhe/halo-lsky-pro/assets/10266066/94b54967-5198-4555-abf6-da9651a6bba1)\n\n\n### 相册 ID\n\n\u003e [!NOTE]\n\u003e\n\u003e 开源版兰空图床不支持此参数，设置后无效。\n\n此处可以指定上传图片的归属相册，留空则不指定（即不属于任何相册）。\n\n如果 Lsky Pro 后台不显示相册 ID。打开浏览的开发者工具 (`F12`)，切换到网络 (Network) 标签页，然后再点击 「我的图片 - 相册 - 选中一个相册」，此时可以看到多了一个请求，名称形如 `images?page=1\u0026album_id=1`，从这就可以得到相册 ID 啦。\n\n当然也可以通过 API 获取，如果你有 curl 的话那么执行：\n\n```bash\ncurl https://yourdomain.com/api/v1/albums -H 'Authorization: Bearer {your-api-token}'\n```\n\n### 实例 ID\n\nHalo 的设计非常灵活，允许安装一个插件后基于不同参数（例如不同 Lsky Pro 服务器）创建多个存储策略，故本插件需要一种方式判断某个图片（附件）与哪一个 Lsky Pro 实例关联，从而正确删除图片。「实例 ID」就是做这个用的，具体来说：\n\n- 每个附件都会在上传时记录当前的实例 ID，并且永远不会改变。\n- 即使重新安装插件，或更改图床地址，或执行其他任何操作，只要实例 ID 与附件记录的匹配就会自动关联。\n\n实例 ID 可以是任意字符串。更改实例 ID 将导致之前上传的附件失去关联。\n\n\u003e [!TIP]\n\u003e\n\u003e **推荐一开始就手动设置实例 ID。**\n\u003e\n\u003e 默认生成的 ID 与 Lsky Pro 地址关联（忽略协议）。这意味着地址更换将导致之前上传的附件失去关联，从 Halo 删除时无法同步删除 Lsky Pro 中的文件。\n\n\n## 建议/反馈\n\n这里是免费开源的第三方插件，无论是否为 Halo 商业用户都不会获得独特的售后服务，请前往仓库的 issues 进行反馈。\n\n求助请描述清楚问题，尽量附上你的配置，错误日志，故障截图等。建议请写明背景和用例。\n\n一句话的反馈将被无条件关闭。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fichenhe%2Fhalo-lsky-pro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fichenhe%2Fhalo-lsky-pro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fichenhe%2Fhalo-lsky-pro/lists"}