bugfix:特殊情况下参数值为null的时候bug
This commit is contained in:
@@ -134,7 +134,7 @@ namespace Getf_Service_Transfer_Client_Service_HttpHandler
|
|||||||
}
|
}
|
||||||
else if (item.Value is JObject)
|
else if (item.Value is JObject)
|
||||||
url += $"&{item.Key}={Newtonsoft.Json.JsonConvert.SerializeObject(item.Value)}";
|
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}";
|
url += $"&{item.Key}={item.Value}";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user