Skip to content

Commit

Permalink
[1.1.1.2]修复了一个可能导致投稿失败的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoChen98 committed Jun 16, 2019
1 parent 14133fa commit 77e1a02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions BiliUploader/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号
// 方法是按如下所示使用“*”: :
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.1.0.1")]
[assembly: AssemblyFileVersion("1.1.0.1")]
[assembly: AssemblyVersion("1.1.1.2")]
[assembly: AssemblyFileVersion("1.1.1.2")]
2 changes: 1 addition & 1 deletion BiliUploader/Uploader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ private static int GetFormatId()
JObject obj = JObject.Parse(str);
if((int)obj["code"] == 0)
{
return (int)obj["data"]["id"];
return obj["data"].HasValues ? (int)obj["data"]["id"] : -1;
}
}
return 0;
Expand Down

0 comments on commit 77e1a02

Please sign in to comment.