From b8c9f1f55293c096b930c72e01258bceefc145ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=83=E9=9C=B2=E5=B0=A7?= Date: Tue, 17 Jan 2023 15:32:38 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:=E7=89=B9=E6=AE=8A=E6=83=85=E5=86=B5?= =?UTF-8?q?=E4=B8=8B=E5=8F=82=E6=95=B0=E5=80=BC=E4=B8=BAnull=E7=9A=84?= =?UTF-8?q?=E6=97=B6=E5=80=99bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../HttpService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/93_nei_core/Getf_Service_Transfer_Client_Service_HttpHandler/HttpService.cs b/93_nei_core/Getf_Service_Transfer_Client_Service_HttpHandler/HttpService.cs index 04f0627..1b3303d 100644 --- a/93_nei_core/Getf_Service_Transfer_Client_Service_HttpHandler/HttpService.cs +++ b/93_nei_core/Getf_Service_Transfer_Client_Service_HttpHandler/HttpService.cs @@ -134,7 +134,7 @@ namespace Getf_Service_Transfer_Client_Service_HttpHandler } else if (item.Value is JObject) url += $"&{item.Key}={Newtonsoft.Json.JsonConvert.SerializeObject(item.Value)}"; - else + else if (item.Value != null && !string.IsNullOrWhiteSpace(item.Value.ToString())) url += $"&{item.Key}={item.Value}"; } }