diff --git a/src/api_s2c/event/leijichongzhi/ApiOpen.ts b/src/api_s2c/event/leijichongzhi/ApiOpen.ts index 686068c..801ee88 100644 --- a/src/api_s2c/event/leijichongzhi/ApiOpen.ts +++ b/src/api_s2c/event/leijichongzhi/ApiOpen.ts @@ -19,7 +19,7 @@ export default async function (call: ApiCall) { 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) { recIndex: db?.recIndex || [], payNum: payNum, hdinfo: _hdinfo, - round: db.round || 0 + round: db?.round || 0 }); } \ No newline at end of file