fix:修复多个账号时geetest_data获取参数不正确的问题 (#171)

Co-authored-by: liuzhili <zl.liu1108@foxmail.com>
This commit is contained in:
zl1108 2023-11-18 13:19:54 +08:00 committed by GitHub
parent 80ff89a754
commit d0a491e4ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,7 @@ async def get_validate(gt: str, challenge: str) -> GeetestResult:
for key, value in params.items():
if isinstance(value, str):
params[key] = value.format(gt=gt, challenge=challenge)
data = _conf.preference.geetest_data
data = _conf.preference.geetest_data.copy()
for key, value in data.items():
if isinstance(value, str):
data[key] = value.format(gt=gt, challenge=challenge)