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