This commit is contained in:
dy 2023-12-15 12:01:38 +08:00
parent 9d5b69edc2
commit 0b806429ab

View File

@ -61,10 +61,13 @@ export class PayFun {
{$set: {del_time: G.time}},
{upsert: true}
);
})
G.mongodb.collection('payLogNew').insertMany(args.map(i => ({key: i.payId, uid: uid, values: i.val})));
G.mongodb.collection('payLogNew').insertMany(args.filter(v => v.payId && v.val).map(i => ({
key: i.payId,
uid: uid,
values: i.val
})));
G.server.sendMsgByUid(uid, 'msg_s2c/PayChange', Object.fromEntries(args.map(a => [a.payId, a.val])));
}