fix:调整数据

This commit is contained in:
kissnavel 2025-11-30 23:12:34 +08:00
parent 7439bc0d21
commit 0f32bfbdfa

View file

@ -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;