diff --git a/lib/gacha.js b/lib/gacha.js index d21e363..b23dd7f 100644 --- a/lib/gacha.js +++ b/lib/gacha.js @@ -60,11 +60,9 @@ export const updateGachaLog = async (authKey, uid, region, game_biz) => { // 循环获取数据 queryLabel: while (true) { if (/^(1[0-9])[0-9]{8}/i.test(uid)) { - const api = authKey; - const deviceFp = region; // 获取抽卡记录 - const log = await api.getFinalData('zzzGacha_Record', { - deviceFp, + const log = await authKey.getFinalData('zzzGacha_Record', { + deviceFp: region, type, endId, }); @@ -86,7 +84,7 @@ export const updateGachaLog = async (authKey, uid, region, game_biz) => { rank_type: rarity_os[item.rarity], id: item.id, square_icon: '', - } + }; if (lastSaved && lastSaved.equals(item)) { // 如果数据相同,说明已经获取完毕 break queryLabel;