1.代运营数据解析

This commit is contained in:
老道 2023-02-02 16:19:20 +08:00
parent 26303e1ffb
commit 3ef91c08da
1 changed files with 10 additions and 1 deletions

View File

@ -18,6 +18,8 @@ using System.Text.RegularExpressions;
using System.Threading; using System.Threading;
using Api.Framework.Data.TB; using Api.Framework.Data.TB;
using Api.Framework.Events; using Api.Framework.Events;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using static Api.Framework.Tools.TBHelper.TbAnalysis; using static Api.Framework.Tools.TBHelper.TbAnalysis;
namespace ProductClient namespace ProductClient
@ -262,7 +264,14 @@ namespace ProductClient
return; return;
} }
EventClient.OnDyyNoticeEvent(null, new DyyNoticeEvent() { Data = html }); var jObj = JObject.Parse(html);
var r = JsonConvert.SerializeObject(jObj["Result"].Value<Object>());
if (string.IsNullOrWhiteSpace(r))
{
return;
}
EventClient.OnDyyNoticeEvent(null, new DyyNoticeEvent() { Data = r });
} }
catch (Exception ex) catch (Exception ex)
{ {