🐞 fix(guild): 捐赠宝箱保护代码
This commit is contained in:
@@ -81,8 +81,8 @@ export function changeReceiveBoxIdByLvAndIndex(receiveBoxs: number[], donationLv
|
|||||||
// 获取已领取箱子的index
|
// 获取已领取箱子的index
|
||||||
let { index } = getArmyDonateBoxBaseById(boxId);
|
let { index } = getArmyDonateBoxBaseById(boxId);
|
||||||
// 获取donationLv等级,第index个箱子的id
|
// 获取donationLv等级,第index个箱子的id
|
||||||
let { id } = getArmyDonateBoxBaseByLvAndIndex(donationLv, index);
|
let donateInfo = getArmyDonateBoxBaseByLvAndIndex(donationLv, index);
|
||||||
haveGotBoxIds.push(id);
|
haveGotBoxIds.push(donateInfo ? donateInfo.id : 0);
|
||||||
});
|
});
|
||||||
return haveGotBoxIds;
|
return haveGotBoxIds;
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user