From 93af482c20f0365a519209ab1970ec725bb8fcd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=88=E6=A3=AE=E5=90=B4?= <8402134@qq.com> Date: Thu, 2 Feb 2023 17:02:42 +0800 Subject: [PATCH] 1. --- 应用/ProductClient/MonitorThread.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/应用/ProductClient/MonitorThread.cs b/应用/ProductClient/MonitorThread.cs index bf38f2f..37e2093 100644 --- a/应用/ProductClient/MonitorThread.cs +++ b/应用/ProductClient/MonitorThread.cs @@ -265,7 +265,12 @@ namespace ProductClient } var jObj = JObject.Parse(html); - var r = JsonConvert.SerializeObject(jObj["Result"].Value()); + if (jObj["Result"] == null) + { + return; + } + + var r = JsonConvert.SerializeObject(jObj.Value()); if (string.IsNullOrWhiteSpace(r)) { return;