From b466826d94d47d7ef9fa27fa783595bfb04639ce Mon Sep 17 00:00:00 2001 From: dy Date: Sun, 31 Dec 2023 18:56:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=AC=AC=E4=B8=80=E6=AC=A1?= =?UTF-8?q?=E6=89=93=E5=BC=80=E6=B2=A1=E6=9C=89round=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api_s2c/event/leijichongzhi/ApiOpen.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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