Browse Source

添加萤石报文记录

callm 4 days ago
parent
commit
f46747740a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      UAS_MES_HYSX/PublicMethod/HttpServer.cs

+ 1 - 0
UAS_MES_HYSX/PublicMethod/HttpServer.cs

@@ -1083,6 +1083,7 @@ namespace UAS_MES_NEW.PublicMethod
                 string json = JsonConvert.SerializeObject(root, Formatting.Indented);
                 var content = new StringContent(json, Encoding.UTF8, "application/json");
                 await Console.Out.WriteLineAsync(json);
+                dh.ExecuteSql("insert into EISDATA(ED_ID, ED_DATA, ED_INDATE, ED_TYPE) values(EISDATA_seq.nextval,'" + json.Replace("'", "''") + "',sysdate,'SendBoxData')","insert");
                 try
                 {
                     var response = await client.PostAsync("https://xi.hikvision.com:8850/RESTAdapter/outsourcing/CALLBACKPACKINGINFO", content);