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

Commit

Permalink
修改以适应.NET Standard版的PixivCS
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiichiamane committed May 16, 2020
1 parent 7b5ee95 commit 4c32829
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion PixivFSUWP/Data/OverAll.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ namespace PixivFSUWP.Data
public static class OverAll
{
public static Uri AppUri = null;
public static PixivBaseAPI GlobalBaseAPI = new PixivBaseAPI(null, null, null, false, 0);
public static PixivBaseAPI GlobalBaseAPI = new PixivBaseAPI();
public const string passwordResource = "PixivFSUWPPassword";
public const string refreshTokenResource = "PixivFSUWPRefreshToken";
public static CurrentUser currentUser = null;
Expand Down
4 changes: 2 additions & 2 deletions PixivFSUWP/PixivFSUWP.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -307,10 +307,10 @@
<Version>6.0.0</Version>
</PackageReference>
<PackageReference Include="PixivCS">
<Version>0.5.4</Version>
<Version>0.5.7</Version>
</PackageReference>
<PackageReference Include="Win2D.uwp">
<Version>1.24.0</Version>
<Version>1.25.0</Version>
</PackageReference>
</ItemGroup>
<ItemGroup>
Expand Down
8 changes: 4 additions & 4 deletions PixivFSUWP/SearchPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,10 @@ private async void btnSauceNAO_Click(object sender, RoutedEventArgs e)
return;
}
//
ImgurNaoAPI imgurNaoApi = new ImgurNaoAPI(SAUCENAO_API_KEY, IMGUR_API_KEY);
string image = imgurNaoApi.UpLoad(await StorageFileExt.AsByteArray(file)).GetNamedString("link");
int retPid = (int)imgurNaoApi.DownLoad(image).GetNamedNumber("pixiv_id");
Frame.Navigate(typeof(IllustDetailPage), retPid);
//ImgurNaoAPI imgurNaoApi = new ImgurNaoAPI(SAUCENAO_API_KEY, IMGUR_API_KEY);
//string image = imgurNaoApi.UpLoad(await StorageFileExt.AsByteArray(file)).GetNamedString("link");
//int retPid = (int)imgurNaoApi.DownLoad(image).GetNamedNumber("pixiv_id");
//Frame.Navigate(typeof(IllustDetailPage), retPid);
}
private void GoPixivID_QuerySubmitted(AutoSuggestBox sender, AutoSuggestBoxQuerySubmittedEventArgs args)
{
Expand Down

0 comments on commit 4c32829

Please sign in to comment.