From 8635d379f9e3273bb8477668ee902eb03da03f2f Mon Sep 17 00:00:00 2001 From: CounterFire2023 <136581895+CounterFire2023@users.noreply.github.com> Date: Tue, 14 May 2024 19:44:25 +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 894b576..aae8228 100644 --- a/src/taskingame/base/ITask.ts +++ b/src/taskingame/base/ITask.ts @@ -33,7 +33,8 @@ export abstract class ITask { public async claimReward(cfg: any) { const user = this.user - let gameData = await queryInGameInfo(user.googleId, '0') + let channel = user.googleId ? '0' : '6' + let gameData = await queryInGameInfo(user.googleId, channel) if (!(await this.check(cfg, gameData))) { throw new ZError(50, 'not match condition') }