diff --git a/src/api_s2c/event/pobinglibao/ApiReceive.ts b/src/api_s2c/event/pobinglibao/ApiReceive.ts index 65ddd8c..6f9133c 100644 --- a/src/api_s2c/event/pobinglibao/ApiReceive.ts +++ b/src/api_s2c/event/pobinglibao/ApiReceive.ts @@ -32,7 +32,7 @@ export default async function (call: ApiCall) { prize.push(...gift[key]); } } - + if (push.length > 0) { if (update["$push"]) { update["$push"]["record." + gift.id] = { $each: push } @@ -71,7 +71,7 @@ export default async function (call: ApiCall) { if (rec >= _payDiff || data?.record?.[gift.id] == call.req.recId) return call.errorCode(-3) - prize.concat(gift[call.req.recId]); + prize.push(...gift[call.req.recId]); update = { $push: { [`record.${gift.id}`]: call.req.recId }, }