diff --git a/BiliUploader/Properties/AssemblyInfo.cs b/BiliUploader/Properties/AssemblyInfo.cs index 8c2efd1..68d3c62 100644 --- a/BiliUploader/Properties/AssemblyInfo.cs +++ b/BiliUploader/Properties/AssemblyInfo.cs @@ -31,5 +31,5 @@ // 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号 // 方法是按如下所示使用“*”: : // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.1.0.1")] -[assembly: AssemblyFileVersion("1.1.0.1")] \ No newline at end of file +[assembly: AssemblyVersion("1.1.1.2")] +[assembly: AssemblyFileVersion("1.1.1.2")] \ No newline at end of file diff --git a/BiliUploader/Uploader.cs b/BiliUploader/Uploader.cs index 497771e..d45c40b 100644 --- a/BiliUploader/Uploader.cs +++ b/BiliUploader/Uploader.cs @@ -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;