yandaniu пре 3 недеља
родитељ
комит
a5e245500f

BIN
.vs/Ropin.Inspection.Api/FileContentIndex/faca37f3-76bf-466e-b1d1-ff504d358551.vsidx → .vs/Ropin.Inspection.Api/FileContentIndex/09e6f59e-649c-4bfe-8e7e-2ef3938364e8.vsidx


BIN
.vs/Ropin.Inspection.Api/FileContentIndex/bb3cb665-85b8-49ed-b8d5-985c151acbb0.vsidx → .vs/Ropin.Inspection.Api/FileContentIndex/20b4e1f3-e273-4628-90f6-6cf9e876bf18.vsidx


BIN
.vs/Ropin.Inspection.Api/FileContentIndex/5fa9b0e0-e900-4b11-93d8-a7b094591df4.vsidx → .vs/Ropin.Inspection.Api/FileContentIndex/2b006eff-0529-4d04-a6a8-1a81261da3b5.vsidx


BIN
.vs/Ropin.Inspection.Api/FileContentIndex/dc828c36-b8be-4e69-9844-a108bb5fd062.vsidx → .vs/Ropin.Inspection.Api/FileContentIndex/546f7d40-4e7b-482a-994f-f49650a51009.vsidx


BIN
.vs/Ropin.Inspection.Api/FileContentIndex/765c23bc-7640-41f3-9190-ea4a35fc1c00.vsidx → .vs/Ropin.Inspection.Api/FileContentIndex/762139ce-1500-4a4c-a90d-0bcb8b3c263d.vsidx


BIN
.vs/Ropin.Inspection.Api/FileContentIndex/7f02d622-7ee6-4c49-9019-84ec6e560b51.vsidx


BIN
.vs/Ropin.Inspection.Api/FileContentIndex/8746401a-d6c0-4645-b14e-5f76724f0e5e.vsidx


BIN
.vs/Ropin.Inspection.Api/FileContentIndex/9eaf3ec7-a104-4f9e-bc1e-3ed7760dc957.vsidx


BIN
.vs/Ropin.Inspection.Api/FileContentIndex/a68678a8-2980-42ab-aa28-4e73cca27cc0.vsidx


BIN
.vs/Ropin.Inspection.Api/FileContentIndex/bd7015a5-9762-4f6e-8105-68dd54ae8250.vsidx


BIN
.vs/Ropin.Inspection.Api/FileContentIndex/448196ad-d6ff-4c53-938a-84b0a446984c.vsidx → .vs/Ropin.Inspection.Api/FileContentIndex/c1df8071-03ca-4800-bbab-c0b726b3132b.vsidx


BIN
.vs/Ropin.Inspection.Api/FileContentIndex/a3216697-4813-481c-be4b-d32dee9fbdda.vsidx → .vs/Ropin.Inspection.Api/FileContentIndex/d0834235-51c7-4c5c-ad0b-78cdb118e86d.vsidx


+ 28 - 0
Ropin.Environmentally.WebScada/Work/HostedService.cs

@@ -370,6 +370,34 @@ namespace Ropin.Environmentally.WebScada.Work
             });
             #endregion
 
+            #region //AI报警同步
+            Task.Run(async () =>
+            {
+                while (true)
+                {
+                    try
+                    {
+                        using (HttpClient httpClient = httpClientFactory.CreateClient())
+                        {
+                            var httpRequestMessage = new HttpRequestMessage
+                            {
+                                Method = HttpMethod.Get,
+                                RequestUri = new Uri(_aPIUrlData.PublicPushMessageAPI)
+                            };
+                            var response = await httpClient.SendAsync(httpRequestMessage);
+                            string responseResult = await response.Content.ReadAsStringAsync();
+                            log.Info($"AI报警数据同步接口返回【{responseResult}】");
+                        }
+                    }
+                    catch (Exception ex)
+                    {
+                        _logger.LogInformation("AI报警同步"+ex.Message);
+                    }
+                    await Task.Delay(60000);
+                }
+            });
+            #endregion
+
             #region 
             //Timer t = new Timer(async (o) => {
             //    if (await _redisService.ExistsAsync("fanyibox_devStore"))