feat(huya): 统一实时商品目录并增加兑换代理开关

This commit is contained in:
yml
2026-11-13 20:12:42 +08:00
parent 563b32b7b7
commit ad782e1954
23 changed files with 930 additions and 511 deletions
+4
View File
@@ -177,6 +177,10 @@ export const huyaApi = {
getConfig: () => api.get<HuyaConfig, HuyaConfig>('/huya/config'),
updateConfig: (data: Partial<HuyaConfig>) => api.put<HuyaConfig, HuyaConfig>('/huya/config', data),
listGoods: () => api.get<HuyaGoodsItem[], HuyaGoodsItem[]>('/huya/goods'),
listLiveGoods: (accountId: number) =>
api.get<HuyaGoodsItem[], HuyaGoodsItem[]>('/huya/goods/live', {
params: { account_id: accountId, _ts: Date.now() },
}),
listRechargeGoods: () => api.get<HuyaRechargeGoodsItem[], HuyaRechargeGoodsItem[]>('/huya/recharge-goods'),
/** 工作台导入外部 CK: 入库并把账号加入自己的工作台 (text 每行一条 CK) */
importWorkbenchCookies: (data: HuyaExternalCkImportRequest) =>
+2
View File
@@ -1251,6 +1251,8 @@ export interface HuyaConfig {
points_page_id: string;
/** 可选覆盖:页签 ID,逗号分隔;留空自动拉全部页签 */
points_tab_ids: string;
/** 精英宝典兑换是否使用全局代理;默认 0,仅兑换链路生效 */
exchange_use_proxy: string;
updated_at: string | null;
}