Skip to content

Commit

Permalink
临时修复首页动态Tab只能加载第一页问题与部分动态不适配问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ywmoyue committed Apr 14, 2024
1 parent afd501c commit 002d31a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public DynamicItemDisplayModelBuilder SwitchType(IMapper mapper, JObject card, J
m_displayViewModel.ImagesInfo = imgs;
break;
}
case UserDynamicDisplayType.Repost when card.ContainsKey("origin_user"):
case UserDynamicDisplayType.Repost when card.ContainsKey("origin_user") && card["origin_user"].ToString() != string.Empty:
{
var originUser = JsonConvert.DeserializeObject<DynamicCardDescUserProfileModel>(card["origin_user"].ToString());
var model = new DynamicCardModel
Expand Down
3 changes: 2 additions & 1 deletion src/BiliLite.UWP/Models/Requests/Api/User/DynamicAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ public ApiModel HistoryDynamic(string dynamic_id, UserDynamicType type)
};//使用Web的API
if (SettingService.Account.Logined)
{
api.parameter += $"&access_key={SettingService.Account.AccessKey}";
api.parameter += "&";
api.parameter += ApiHelper.MustParameter(AppKey, true);
}
api.parameter += ApiHelper.GetSign(api.parameter, AppKey);
return api;
Expand Down

0 comments on commit 002d31a

Please sign in to comment.