优化番号处理逻辑,添加对MetaTube的支持

优化番号处理逻辑,添加对MetaTube的支持
This commit is contained in:
truewhile
2026-08-21 00:06:49 +08:00
parent aa15cfe1f1
commit 65d1ad5ae5
25 changed files with 2283 additions and 83 deletions
+18
View File
@@ -54,4 +54,22 @@ export const adminAPI = {
systemUpdateCheck: () => api.post<SystemUpdateStatus>('/admin/system/update/check').then((r) => r.data),
systemUpdateApply: () => api.post<SystemUpdateStatus>('/admin/system/update/apply').then((r) => r.data),
testAdultScraper: (payload: {
engine?: string
server_url?: string
token?: string
javdb_url?: string
javbus_url?: string
cookie?: string
}) =>
api
.post<{
success: boolean
latency_ms?: number
providers?: string[]
message?: string
error?: string
}>('/admin/adult/test-scraper', payload)
.then((r) => r.data),
}
+2
View File
@@ -27,4 +27,6 @@ export const apiConfigsAPI = {
update: (provider: string, patch: APIConfigPatch) =>
api.put<APIConfig>(`/admin/api-configs/${provider}`, patch).then((r) => r.data),
remove: (provider: string) => api.delete(`/admin/api-configs/${provider}`).then((r) => r.data),
test: (provider: string) =>
api.post<{ result: string; error?: string }>(`/admin/api-configs/${provider}/test`).then((r) => r.data),
}