From 77e1a02e7419d51e644eea26d5db4262ad44beaf Mon Sep 17 00:00:00 2001 From: Leo Chen <1234567890chw@163.com> Date: Mon, 17 Jun 2019 01:06:19 +0800 Subject: [PATCH] =?UTF-8?q?[1.1.1.2]=E4=BF=AE=E5=A4=8D=E4=BA=86=E4=B8=80?= =?UTF-8?q?=E4=B8=AA=E5=8F=AF=E8=83=BD=E5=AF=BC=E8=87=B4=E6=8A=95=E7=A8=BF?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BiliUploader/Properties/AssemblyInfo.cs | 4 ++-- BiliUploader/Uploader.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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;