Merge branch 'bugfix' into dev

This commit is contained in:
dy 2023-12-31 18:56:47 +08:00
commit afe6ddc20b

View File

@ -19,7 +19,7 @@ export default async function (call: ApiCall<ReqOpen, ResOpen>) {
if (!db) { if (!db) {
await G.mongodb.cEvent(_dbType).updateOne( await G.mongodb.cEvent(_dbType).updateOne(
{uid: call.uid, type: _dbType}, {uid: call.uid, type: _dbType},
{$set: {sTime: sTime, recIndex: []}}, {$set: {sTime: sTime, recIndex: [], round: 0}},
{upsert: true} {upsert: true}
); );
} }
@ -33,6 +33,6 @@ export default async function (call: ApiCall<ReqOpen, ResOpen>) {
recIndex: db?.recIndex || [], recIndex: db?.recIndex || [],
payNum: payNum, payNum: payNum,
hdinfo: _hdinfo, hdinfo: _hdinfo,
round: db.round || 0 round: db?.round || 0
}); });
} }