Skip to content
This repository has been archived by the owner on Sep 22, 2022. It is now read-only.

Commit

Permalink
[2.3.6.20]
Browse files Browse the repository at this point in the history
fixes:
1. 修复.net core 3.x下二维码登录返回值转换错误的问题。(fixed #23)
  • Loading branch information
LeoChen98 committed May 3, 2020
1 parent 8a00b57 commit 148eb0f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions BiliAccount/BiliAccount.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<RootNamespace>BiliAccount</RootNamespace>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageId>BiliAccount</PackageId>
<Version>2.3.5.19</Version>
<Version>2.3.6.20</Version>
<Authors>LeoChen</Authors>
<Company>zhangbudademao.com</Company>
<Product>BiliAccount</Product>
Expand All @@ -20,7 +20,7 @@
<PackageIcon>favicon_4.png</PackageIcon>
<PackageReleaseNotes>
fixes:
1. 修复.net core 3.x下二维码登录转换错误的问题
1. 修复.net core 3.x下二维码登录返回值转换错误的问题
</PackageReleaseNotes>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
Expand Down
7 changes: 6 additions & 1 deletion BiliAccount/Core/ByQRCode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#if NETSTANDARD2_0 || NETCORE3_0
using QRCoder;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
#else

using System.Web.Script.Serialization;
Expand Down Expand Up @@ -112,8 +113,12 @@ private static void MonitorCallback(object o)
Refresher.Dispose();

Account account = new Account();

#if NETSTANDARD2_0 || NETCORE3_0
string Querystring = Regex.Split((obj.data as JObject)["url"].ToString(), "\\?")[1];
#else
string Querystring = Regex.Split((obj.data as Dictionary<string, object>)["url"].ToString(), "\\?")[1];
#endif

string[] KeyValuePair = Regex.Split(Querystring, "&");
account.Cookies = new CookieCollection();
for (int i = 0; i < KeyValuePair.Length - 1; i++)
Expand Down

0 comments on commit 148eb0f

Please sign in to comment.