From 0a5413376c5b43d37cf34c3dcfbbe339aa8cc127 Mon Sep 17 00:00:00 2001 From: CounterFire2023 <136581895+CounterFire2023@users.noreply.github.com> Date: Tue, 14 May 2024 19:45:46 +0800 Subject: [PATCH] bug fix: check gamedata --- src/taskingame/base/ITask.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/taskingame/base/ITask.ts b/src/taskingame/base/ITask.ts index aae8228..4f5e3dc 100644 --- a/src/taskingame/base/ITask.ts +++ b/src/taskingame/base/ITask.ts @@ -34,7 +34,8 @@ export abstract class ITask { public async claimReward(cfg: any) { const user = this.user let channel = user.googleId ? '0' : '6' - let gameData = await queryInGameInfo(user.googleId, channel) + let gameId = user.gameId() + let gameData = await queryInGameInfo(gameId, channel) if (!(await this.check(cfg, gameData))) { throw new ZError(50, 'not match condition') }