This commit is contained in:
老道 2023-02-02 17:02:42 +08:00
parent 3ef91c08da
commit 93af482c20
1 changed files with 6 additions and 1 deletions

View File

@ -265,7 +265,12 @@ namespace ProductClient
} }
var jObj = JObject.Parse(html); var jObj = JObject.Parse(html);
var r = JsonConvert.SerializeObject(jObj["Result"].Value<Object>()); if (jObj["Result"] == null)
{
return;
}
var r = JsonConvert.SerializeObject(jObj.Value<Object>());
if (string.IsNullOrWhiteSpace(r)) if (string.IsNullOrWhiteSpace(r))
{ {
return; return;