Compare commits

..

No commits in common. "bd4f12817985f1dd899315fa238fd8d6d6259562" and "3b3d61795e4949ee028a5f516f467bee18a4796f" have entirely different histories.

View File

@ -32,7 +32,7 @@ export default async function (call: ApiCall<ReqReceive, ResReceive>) {
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<ReqReceive, ResReceive>) {
if (rec >= _payDiff || data?.record?.[gift.id] == call.req.recId) return call.errorCode(-3)
prize.push(...gift[call.req.recId]);
prize.concat(gift[call.req.recId]);
update = {
$push: { [`record.${gift.id}`]: call.req.recId },
}