replace Newtonsoft.Json by System.Text.Json

This commit is contained in:
2021-08-04 15:03:15 +08:00
parent c727c6de87
commit a553b156f7
9 changed files with 375 additions and 45 deletions

View File

@@ -177,9 +177,9 @@ namespace Gallery.Illust
var data = Stores.LoadIllustRankingData(lastQueryKey, queryDate, currentPage, out lastError, force);
if (data != null)
{
if (int.TryParse(data.next, out int next))
if (data.next != null)
{
nextPage = next;
nextPage = data.next.Value;
}
var date = data.date;
DateTime now;