mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.git
synced 2025-11-19 21:02:53 +08:00
@@ -33,7 +33,7 @@ internal interface ISupportLoginByWebView
|
||||
{
|
||||
(UserOptionResult result, string nickname) = await serviceProvider
|
||||
.GetRequiredService<IUserService>()
|
||||
.ProcessInputCookieAsync(cookie, false)
|
||||
.ProcessInputCookieAsync(cookie, isOversea)
|
||||
.ConfigureAwait(false);
|
||||
|
||||
serviceProvider.GetRequiredService<INavigationService>().GoBack();
|
||||
|
||||
@@ -57,7 +57,7 @@ internal sealed partial class SignInClientOversea : ISignInClient
|
||||
HttpRequestMessageBuilder builder = httpRequestMessageBuilderFactory.Create()
|
||||
.SetRequestUri(ApiOsEndpoints.SignInRewardSign)
|
||||
.SetUserCookie(userAndUid, CookieType.CookieToken)
|
||||
.PostJson(new SignInData(userAndUid.Uid, false));
|
||||
.PostJson(new SignInData(userAndUid.Uid, true));
|
||||
|
||||
Response<SignInResult>? resp = await builder
|
||||
.TryCatchSendAsync<Response<SignInResult>>(httpClient, logger, token)
|
||||
@@ -73,7 +73,7 @@ internal sealed partial class SignInClientOversea : ISignInClient
|
||||
.SetRequestUri(ApiOsEndpoints.SignInRewardSign)
|
||||
.SetUserCookie(userAndUid, CookieType.CookieToken)
|
||||
.SetXrpcChallenge(challenge, validate)
|
||||
.PostJson(new SignInData(userAndUid.Uid, false));
|
||||
.PostJson(new SignInData(userAndUid.Uid, true));
|
||||
|
||||
resp = await verifiedBuilder
|
||||
.TryCatchSendAsync<Response<SignInResult>>(httpClient, logger, token)
|
||||
|
||||
Reference in New Issue
Block a user