抽卡:添加抽卡接口
This commit is contained in:
@@ -432,7 +432,8 @@ export function randEquipPrintId(warInfo) {
|
||||
if (!warInfo || !warInfo['jackpotReward']) {
|
||||
return null;
|
||||
}
|
||||
const result = getRandomWithWeight(decodeStr('possibility', warInfo['jackpotReward']));
|
||||
let jackpotReward: { id: number, weight: number}[] = decodeStr('possibility', warInfo['jackpotReward']);
|
||||
const result = getRandomWithWeight(jackpotReward);
|
||||
if (!result || !result.dic || !result.dic.id) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user