bug fix: check gamedata
This commit is contained in:
parent
8635d379f9
commit
0a5413376c
@ -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')
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user