bug fix: check gamedata

This commit is contained in:
CounterFire2023 2024-05-14 19:44:25 +08:00
parent fc30c1ccf4
commit 8635d379f9

View File

@ -33,7 +33,8 @@ export abstract class ITask {
public async claimReward(cfg: any) { public async claimReward(cfg: any) {
const user = this.user 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))) { if (!(await this.check(cfg, gameData))) {
throw new ZError(50, 'not match condition') throw new ZError(50, 'not match condition')
} }