Skip to content

Commit

Permalink
fix: 修复扫码登录
Browse files Browse the repository at this point in the history
  • Loading branch information
ywmuyan committed Jan 19, 2023
1 parent bc3e275 commit e8aac76
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/BiliLite.UWP/Models/Common/BiliRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,13 +158,13 @@ public async Task<HttpResults> Send()
}

var responseMsg = response.ResponseMessage;
if (!responseMsg.IsSuccessStatusCode)
if (m_needRedirect)
{
httpResults = ConstructErrorResults(response);
httpResults = ConstructRedirectResults(response);
}
else if (m_needRedirect)
else if (!responseMsg.IsSuccessStatusCode)
{
httpResults = ConstructRedirectResults(response);
httpResults = ConstructErrorResults(response);
}
else
{
Expand Down

0 comments on commit e8aac76

Please sign in to comment.