fix(pugongying): 为代理接口请求添加 API Key 认证

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
wxs 2026-03-13 20:54:05 +08:00
parent ad10b171e9
commit 1c21be5e77

View File

@ -29,13 +29,19 @@
namespace: "dataSummary",
buildUrl: (userId) =>
`${PROXY_API_BASE}/v1/pugongying/data_summary?userId=${encodeURIComponent(userId)}`,
extraHeaders: () => ({ "X-Cookie": root.document.cookie }),
extraHeaders: () => ({
"X-Cookie": root.document.cookie,
"Authorization": "Bearer PsjpalaBZF2EVIyU5M7V9KHzUstOIN82LyMn9nqLekExyxIBnjjURlMKMDBSZwrG",
}),
},
{
namespace: "fansSummary",
buildUrl: (userId) =>
`${PROXY_API_BASE}/v1/pugongying/fans_summary?userId=${encodeURIComponent(userId)}`,
extraHeaders: () => ({ "X-Cookie": root.document.cookie }),
extraHeaders: () => ({
"X-Cookie": root.document.cookie,
"Authorization": "Bearer PsjpalaBZF2EVIyU5M7V9KHzUstOIN82LyMn9nqLekExyxIBnjjURlMKMDBSZwrG",
}),
},
];
const NAMESPACE_LABEL_MAP = {