mirror of
https://github.com/justlovemaki/AIClient-2-API.git
synced 2026-04-26 01:45:56 +03:00
[PR #202] [MERGED] feat(api-potluck): 插件 - API 大锅饭 - 升级 V1.0.1 #299
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/AIClient-2-API-justlovemaki#299
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/justlovemaki/AIClient-2-API/pull/202
Author: @leonaii
Created: 1/9/2026
Status: ✅ Merged
Merged: 1/9/2026
Merged by: @justlovemaki
Base:
main← Head:main📝 Commits (1)
7edfdb1feat(api-potluck): 插件 - API 大锅饭 - 升级 V1.0.1📊 Changes
10 files changed (+4085 additions, -967 deletions)
View changed files
📝
.gitignore(+2 -1)➕
configs/api-potluck-data.json.example(+29 -0)➕
configs/api-potluck-keys.json.example(+16 -0)📝
src/plugins/api-potluck/api-routes.js(+569 -47)📝
src/plugins/api-potluck/index.js(+18 -9)📝
src/plugins/api-potluck/key-manager.js(+229 -18)📝
src/plugins/api-potluck/middleware.js(+1 -1)➕
src/plugins/api-potluck/user-data-manager.js(+721 -0)📝
static/potluck-user.html(+1709 -801)📝
static/potluck.html(+791 -90)📄 Description
概述
本次更新为 API 大锅饭插件增加了配置热更新、凭证资源包管理、批量操作功能,并重构了管理端和用户端的 UI 样式。
主要变更
🔧 配置管理
api-potluck-data.json的config字段defaultDailyLimit、bonusPerCredential、bonusValidityDays、persistInterval🎁 资源包系统
⚡ 批量操作
🎨 UI 重构
potluck.html:统一深色主题,新增配置卡片、资源包显示、响应式优化potluck-user.html:统计卡片重构(每日用量、资源包、累计调用),凭证列表按添加时间倒序🔌 API 新增
GET/PUT /api/potluck/config- 配置管理POST /api/potluck/keys/apply-limit- 批量应用限额POST /api/potluck/keys/apply-bonus- 批量同步资源包POST /api/potluck/keys/:id/regenerate- 重新生成 KeyGET /api/potluckuser/credentials- 获取用户凭证列表POST /api/potluckuser/credentials/check-all- 批量检查凭证健康状态POST /api/potluckuser/regenerate-key- 用户重置自己的 Key文件变更
src/plugins/api-potluck/user-data-manager.jssrc/plugins/api-potluck/key-manager.jssrc/plugins/api-potluck/api-routes.jssrc/plugins/api-potluck/index.jssrc/plugins/api-potluck/middleware.jsstatic/potluck.htmlstatic/potluck-user.htmlconfigs/api-potluck-data.json.exampleconfigs/api-potluck-keys.json.example.gitignore兼容性
bonusRemaining字段)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.