Skip to content
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.

修复直播数据解析错误 #1656

Merged
merged 2 commits into from
Mar 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
Expand Down Expand Up @@ -114,12 +113,11 @@ private async Task<MediaInformation> InternalGetDashAsync(string cid, string aid
otherQuery = $"area={area}";
}

var request = await _httpProvider.GetRequestMessageAsync(HttpMethod.Get, url, queryParameters, Models.Enums.RequestClientType.IOS, additionalQuery: otherQuery);
var request = await _httpProvider.GetRequestMessageAsync(HttpMethod.Get, url, queryParameters, RequestClientType.IOS, additionalQuery: otherQuery);
var response = await _httpProvider.SendAsync(request);
var data = await _httpProvider.ParseAsync<ServerResponse<PlayerInformation>, ServerResponse2<PlayerInformation>>(response, (str) =>
{
var jobj = JObject.Parse(str);
Debug.WriteLine(jobj.ToString());
return jobj.ContainsKey("data");
});

Expand Down
2 changes: 1 addition & 1 deletion src/Models/Models.BiliBili/Search/LiveSearchItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class LiveSearchItem : SearchItemBase
/// 用户Id.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "mid", Required = Required.Default)]
public int UserId { get; set; }
public long UserId { get; set; }

/// <summary>
/// 类型.
Expand Down