This commit is contained in:
Womsxd 2022-10-08 21:36:35 +08:00
parent 96425586e8
commit d4075528b8
No known key found for this signature in database
GPG Key ID: 0FE76418EE689B68

View File

@ -60,7 +60,7 @@ class Genshin:
continue continue
data = req.json() data = req.json()
if data["retcode"] == 0 and data["data"]["success"] == 1: if data["retcode"] == 0 and data["data"]["success"] == 1:
validate = captcha.game_captcha() validate = captcha.game_captcha(data["data"]["gt"], data["data"]["challenge"])
if validate is not None: if validate is not None:
header["x-rpc-challenge"] = data["data"]["challenge"] header["x-rpc-challenge"] = data["data"]["challenge"]
header["x-rpc-validate"] = validate header["x-rpc-validate"] = validate