修复第一次打开没有round报错
This commit is contained in:
parent
428033b26f
commit
b466826d94
@ -19,7 +19,7 @@ export default async function (call: ApiCall<ReqOpen, ResOpen>) {
|
||||
if (!db) {
|
||||
await G.mongodb.cEvent(_dbType).updateOne(
|
||||
{uid: call.uid, type: _dbType},
|
||||
{$set: {sTime: sTime, recIndex: []}},
|
||||
{$set: {sTime: sTime, recIndex: [], round: 0}},
|
||||
{upsert: true}
|
||||
);
|
||||
}
|
||||
@ -33,6 +33,6 @@ export default async function (call: ApiCall<ReqOpen, ResOpen>) {
|
||||
recIndex: db?.recIndex || [],
|
||||
payNum: payNum,
|
||||
hdinfo: _hdinfo,
|
||||
round: db.round || 0
|
||||
round: db?.round || 0
|
||||
});
|
||||
}
|
Loading…
Reference in New Issue
Block a user