From edfb48fa10b0518311ee46bef4aded0859069d16 Mon Sep 17 00:00:00 2001 From: wjc <1243177876@qq.com> Date: 星期二, 18 七月 2023 17:51:52 +0800 Subject: [PATCH] 2023年07月18日17:50:46 --- HDL_ON/DAL/Server/HttpUtil.cs | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/HDL_ON/DAL/Server/HttpUtil.cs b/HDL_ON/DAL/Server/HttpUtil.cs index 0d07a76..62b4b3f 100644 --- a/HDL_ON/DAL/Server/HttpUtil.cs +++ b/HDL_ON/DAL/Server/HttpUtil.cs @@ -239,6 +239,18 @@ else { HDL_ON.Utlis.WriteLine($"鎺ュ彛寮傚父:{requestFullUrl} \r\n"+response.Content); + if(response.Content!= null) + { + try + { + var pack = Newtonsoft.Json.JsonConvert.DeserializeObject<ResponsePackNew>(response.Content); + if (pack != null) + { + return pack; + } + } + catch { } + } return new ResponsePackNew() { Code = StateCode.NETWORK_ERROR }; } -- Gitblit v1.8.0