Skip to content

Commit

Permalink
fix: fix yuanshen sign verify
Browse files Browse the repository at this point in the history
  • Loading branch information
starudream committed Dec 27, 2023
1 parent e85a65b commit 8f32f5d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api/miyoushe/sign_game.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type SignGameData struct {
}

func (t *SignGameData) IsRisky() bool {
return t.IsRisk && t.RiskCode == 5001
return t.IsRisk
}

func SignGame(gameName, actId, region, uid string, account config.Account, validate *common.Verification) (*SignGameData, error) {
Expand Down
4 changes: 4 additions & 0 deletions job/game.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ sign:
}
} else if signGameData.IsRisky() {
record.IsRisky = true
if signGameData.Gt == "" || signGameData.Challenge == "" {
err = fmt.Errorf("sign game is risky, but gt or challenge is empty")
return
}
record.Verify++
verification, err = DM(signGameData.Gt, signGameData.Challenge)
if err != nil {
Expand Down

0 comments on commit 8f32f5d

Please sign in to comment.