mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 21:27:47 +00:00
fix:调整数据
This commit is contained in:
parent
7439bc0d21
commit
0f32bfbdfa
1 changed files with 3 additions and 5 deletions
|
|
@ -60,11 +60,9 @@ export const updateGachaLog = async (authKey, uid, region, game_biz) => {
|
||||||
// 循环获取数据
|
// 循环获取数据
|
||||||
queryLabel: while (true) {
|
queryLabel: while (true) {
|
||||||
if (/^(1[0-9])[0-9]{8}/i.test(uid)) {
|
if (/^(1[0-9])[0-9]{8}/i.test(uid)) {
|
||||||
const api = authKey;
|
|
||||||
const deviceFp = region;
|
|
||||||
// 获取抽卡记录
|
// 获取抽卡记录
|
||||||
const log = await api.getFinalData('zzzGacha_Record', {
|
const log = await authKey.getFinalData('zzzGacha_Record', {
|
||||||
deviceFp,
|
deviceFp: region,
|
||||||
type,
|
type,
|
||||||
endId,
|
endId,
|
||||||
});
|
});
|
||||||
|
|
@ -86,7 +84,7 @@ export const updateGachaLog = async (authKey, uid, region, game_biz) => {
|
||||||
rank_type: rarity_os[item.rarity],
|
rank_type: rarity_os[item.rarity],
|
||||||
id: item.id,
|
id: item.id,
|
||||||
square_icon: '',
|
square_icon: '',
|
||||||
}
|
};
|
||||||
if (lastSaved && lastSaved.equals(item)) {
|
if (lastSaved && lastSaved.equals(item)) {
|
||||||
// 如果数据相同,说明已经获取完毕
|
// 如果数据相同,说明已经获取完毕
|
||||||
break queryLabel;
|
break queryLabel;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue