bug fix: check gamedata

This commit is contained in:
CounterFire2023 2024-05-14 19:45:46 +08:00
parent 8635d379f9
commit 0a5413376c

View File

@ -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')
}