mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.git
synced 2025-11-19 21:02:53 +08:00
fix signin challenge source
This commit is contained in:
@@ -77,11 +77,11 @@ internal sealed partial class SignInClient
|
||||
.TryCatchPostAsJsonAsync<SignInData, Response<SignInResult>>(ApiEndpoints.SignInRewardSign, new SignInData(userAndUid.Uid), options, logger, token)
|
||||
.ConfigureAwait(false);
|
||||
|
||||
if (resp is { Data: { Success: 1, Gt: string gt, Challenge: string challenge } })
|
||||
if (resp is { Data: { Success: 1, Gt: string gt, Challenge: string originChallenge } })
|
||||
{
|
||||
GeetestResponse verifyResponse = await homaGeetestClient.VerifyAsync(gt, challenge, token).ConfigureAwait(false);
|
||||
GeetestResponse verifyResponse = await homaGeetestClient.VerifyAsync(gt, originChallenge, token).ConfigureAwait(false);
|
||||
|
||||
if (verifyResponse is { Code: 0, Data.Validate: string validate })
|
||||
if (verifyResponse is { Code: 0, Data: { Validate: string validate, Challenge: string challenge } })
|
||||
{
|
||||
resp = await httpClient
|
||||
.SetUser(userAndUid.User, CookieType.CookieToken)
|
||||
|
||||
Reference in New Issue
Block a user