Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

Commit

Permalink
临时载图解决方案(?)
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiichiamane committed Feb 13, 2020
1 parent 3d1218f commit 3c663ee
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion PixivFSUWP/Data/OverAll.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,13 @@ public static void RefreshRankingList()
}

//携带缓存的图像下载
public static async Task<MemoryStream> DownloadImage(string Uri)
public static async Task<MemoryStream> DownloadImage(string _Uri)
{
var Uri = _Uri;
if (Uri.StartsWith("https"))
{
Uri = Uri.Replace("https://", "http://");
}
var tmpFileName = Uri.Split('/').Last();
var cachedFile = await CacheManager.GetCachedFileAsync(tmpFileName);
if (cachedFile == null)
Expand Down

0 comments on commit 3c663ee

Please sign in to comment.