feat(api, web): интеграция Macloud и VDSina через унифицированный UserAPI
Docker / build (push) Has been cancelled

Один модуль userapi для идентичного API обоих хостеров: синк VPS, баланса, тарифов и пополнений.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
DenozordecandCursor committed 2026-06-29 02:02:03 +07:00
1 parent 9be50aa03b
commit f2c4c7a412
18 files changed
+1469 -32

No files matched your search

@@ -34,6 +34,11 @@ export function parseFourVpsCredentials(credentials: string | null | undefined):
}
}
/** Bearer token для Macloud / VDSina UserAPI. */
export function parseUserApiToken(credentials: string | null | undefined): string {
return String(credentials ?? '').trim()
}
/** Собрать 4VPS-креды: panelId + API key. */
export function buildFourVpsCredentials(panelId: string, apiKey: string): string {
const pid = panelId.trim()