破冰礼包一键领取
This commit is contained in:
xichaoyin 2024-01-04 22:25:17 +08:00
parent 8e1c5412d6
commit da37b162d9

View File

@ -27,7 +27,7 @@ export default async function (call: ApiCall<ReqReceive, ResReceive>) {
if (!payLog || !payLog.length) continue;
for (let key of ["prize", "recPrize1", "recPrize2"]) {
if (!data.record[gift.id] || !data.record[gift.id].includes(key)) {
if (!data || !data?.record[gift.id] || !data.record[gift.id].includes(key)) {
push.push(key);
prize.push(...gift[key]);
}