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