feat(huya): 统一实时商品目录并增加兑换代理开关
This commit is contained in:
@@ -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) =>
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user