mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-08 02:37:28 +08:00
[F] Fix userbox
This commit is contained in:
@@ -266,7 +266,9 @@ export const USERBOX = {
|
||||
get('/api/v2/game/chu3/user-box', {}),
|
||||
getUnlockedItems: (itemId: UserBoxItemKind): Promise<{ itemKind: number, itemId: number, stock: number, isValid: boolean }[]> =>
|
||||
get(`/api/v2/game/chu3/user-box-item-by-kind`,{ itemId }),
|
||||
getItemLabels: () => get(`/api/v2/game/chu3/user-box-all-items`, {}),
|
||||
getItemLabels: () => get(`/api/v2/game/chu3/user-box-all-items`, {}).then(it =>
|
||||
Object.fromEntries(Object.entries(it).map(([key, value]) =>
|
||||
[key, Object.fromEntries((value as any[]).map(it => [it.id, it.name]))]))),
|
||||
setUserBox: (d: { field: string, value: number | string }) =>
|
||||
post(`/api/v2/game/chu3/user-detail-set`, d),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user