|
|
@ -23,7 +23,7 @@ namespace DownKyi.Core.BiliApi.Login
|
|
|
|
string getLoginUrl = "https://passport.bilibili.com/qrcode/getLoginUrl";
|
|
|
|
string getLoginUrl = "https://passport.bilibili.com/qrcode/getLoginUrl";
|
|
|
|
string referer = "https://passport.bilibili.com/login";
|
|
|
|
string referer = "https://passport.bilibili.com/login";
|
|
|
|
string response = WebClient.RequestWeb(getLoginUrl, referer);
|
|
|
|
string response = WebClient.RequestWeb(getLoginUrl, referer);
|
|
|
|
Console.Out.WriteLine(response);
|
|
|
|
|
|
|
|
try
|
|
|
|
try
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var loginUrl = JsonConvert.DeserializeObject<LoginUrlOrigin>(response);
|
|
|
|
var loginUrl = JsonConvert.DeserializeObject<LoginUrlOrigin>(response);
|
|
|
@ -56,7 +56,7 @@ namespace DownKyi.Core.BiliApi.Login
|
|
|
|
|
|
|
|
|
|
|
|
string response = WebClient.RequestWeb(url, referer, "POST", parameters);
|
|
|
|
string response = WebClient.RequestWeb(url, referer, "POST", parameters);
|
|
|
|
var loginInfo = new LoginStatus();
|
|
|
|
var loginInfo = new LoginStatus();
|
|
|
|
Console.Out.WriteLine(response);
|
|
|
|
|
|
|
|
try
|
|
|
|
try
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (response.Contains("\"code\":0") || response.Contains("\"code\": 0"))
|
|
|
|
if (response.Contains("\"code\":0") || response.Contains("\"code\": 0"))
|
|
|
|