yandaniu 1 day ago
parent
commit
747874205e
42 changed files with 46 additions and 48 deletions
  1. 1 1
      .env
  2. BIN
      .vs/Ropin.Inspection.Api/DesignTimeBuild/.dtbcache.v2
  3. BIN
      .vs/Ropin.Inspection.Api/FileContentIndex/04c2b4ba-6049-4a6a-8360-8ad40d6ddf6b.vsidx
  4. BIN
      .vs/Ropin.Inspection.Api/FileContentIndex/1a10b504-30be-4a6d-b9dc-879d59c98028.vsidx
  5. BIN
      .vs/Ropin.Inspection.Api/FileContentIndex/67d8f1e4-38e9-4848-a82c-3ab22c7ce789.vsidx
  6. BIN
      .vs/Ropin.Inspection.Api/FileContentIndex/7f02d622-7ee6-4c49-9019-84ec6e560b51.vsidx
  7. BIN
      .vs/Ropin.Inspection.Api/FileContentIndex/8746401a-d6c0-4645-b14e-5f76724f0e5e.vsidx
  8. BIN
      .vs/Ropin.Inspection.Api/FileContentIndex/9eaf3ec7-a104-4f9e-bc1e-3ed7760dc957.vsidx
  9. BIN
      .vs/Ropin.Inspection.Api/FileContentIndex/a06bb213-6eb6-4fb2-be26-6f55b7e23e03.vsidx
  10. BIN
      .vs/Ropin.Inspection.Api/FileContentIndex/a5bdcd84-8aa7-4134-8905-a2d42de6cb12.vsidx
  11. BIN
      .vs/Ropin.Inspection.Api/FileContentIndex/a68678a8-2980-42ab-aa28-4e73cca27cc0.vsidx
  12. BIN
      .vs/Ropin.Inspection.Api/FileContentIndex/abd5d01e-38ec-41c0-9a49-45075d9158c5.vsidx
  13. BIN
      .vs/Ropin.Inspection.Api/FileContentIndex/ac8d83de-56c4-44a8-aae4-95b765142de8.vsidx
  14. BIN
      .vs/Ropin.Inspection.Api/FileContentIndex/bb42f8d8-639c-4614-86e4-5acf837f5722.vsidx
  15. BIN
      .vs/Ropin.Inspection.Api/FileContentIndex/bd7015a5-9762-4f6e-8105-68dd54ae8250.vsidx
  16. BIN
      .vs/Ropin.Inspection.Api/FileContentIndex/cacc7f19-9061-409f-86c6-a0f7952f19eb.vsidx
  17. BIN
      .vs/Ropin.Inspection.Api/FileContentIndex/d66ea7ee-bbb0-447f-8ccd-8f3d80d23a1a.vsidx
  18. BIN
      .vs/Ropin.Inspection.Api/FileContentIndex/e51e62a2-0645-4918-8605-e70f423f6c1c.vsidx
  19. BIN
      .vs/Ropin.Inspection.Api/v17/.suo
  20. 1 1
      Ropin.Environmentally.AlarmService/Properties/launchSettings.json
  21. 3 3
      Ropin.Environmentally.AlarmService/appsettings.Development.json
  22. BIN
      Ropin.Environmentally.AlarmService/bin/Debug/net5.0/Ropin.Core.Extensions.dll
  23. BIN
      Ropin.Environmentally.AlarmService/bin/Debug/net5.0/Ropin.Core.Extensions.pdb
  24. BIN
      Ropin.Environmentally.AlarmService/bin/Debug/net5.0/Ropin.Environmentally.AlarmService.dll
  25. BIN
      Ropin.Environmentally.AlarmService/bin/Debug/net5.0/Ropin.Environmentally.AlarmService.pdb
  26. BIN
      Ropin.Environmentally.AlarmService/bin/Debug/net5.0/Ropin.Inspection.Model.dll
  27. BIN
      Ropin.Environmentally.AlarmService/bin/Debug/net5.0/Ropin.Inspection.Model.pdb
  28. BIN
      Ropin.Environmentally.AlarmService/bin/Debug/net5.0/Ropin.Inspection.Repository.dll
  29. BIN
      Ropin.Environmentally.AlarmService/bin/Debug/net5.0/Ropin.Inspection.Repository.pdb
  30. BIN
      Ropin.Environmentally.AlarmService/bin/Debug/net5.0/Ropin.Inspection.Service.dll
  31. BIN
      Ropin.Environmentally.AlarmService/bin/Debug/net5.0/Ropin.Inspection.Service.pdb
  32. BIN
      Ropin.Environmentally.AlarmService/bin/Debug/net5.0/Ropin.Inspection.Tasks.dll
  33. BIN
      Ropin.Environmentally.AlarmService/bin/Debug/net5.0/Ropin.Inspection.Tasks.pdb
  34. 3 3
      Ropin.Environmentally.AlarmService/bin/Debug/net5.0/appsettings.Development.json
  35. 0 0
      Ropin.Environmentally.AlarmService/bin/Debug/net5.0/logs/2025/202506/20250611.txt
  36. 0 0
      Ropin.Environmentally.AlarmService/bin/Debug/net5.0/logs/2025/202506/20250611_error.txt
  37. 0 0
      Ropin.Environmentally.AlarmService/bin/Debug/net5.0/logs/2025/202506/20250612.txt
  38. 0 0
      Ropin.Environmentally.AlarmService/bin/Debug/net5.0/logs/2025/202506/20250612_error.txt
  39. BIN
      Ropin.Environmentally.AlarmService/obj/Debug/net5.0/Ropin.Environmentally.AlarmService.csproj.AssemblyReference.cache
  40. BIN
      Ropin.Environmentally.AlarmService/obj/Debug/net5.0/Ropin.Environmentally.AlarmService.dll
  41. BIN
      Ropin.Environmentally.AlarmService/obj/Debug/net5.0/Ropin.Environmentally.AlarmService.pdb
  42. 38 40
      Ropin.Inspection.Api/Controllers/Base/AIController.cs

+ 1 - 1
.env

@@ -2,4 +2,4 @@
 #Development
 #Staging
 DEV_ENVIRONMENT=Development 
-version=1.3.14
+version=1.3.15

BIN
.vs/Ropin.Inspection.Api/DesignTimeBuild/.dtbcache.v2


BIN
.vs/Ropin.Inspection.Api/FileContentIndex/73bd97a8-38de-4310-ab87-597ed387bf4b.vsidx → .vs/Ropin.Inspection.Api/FileContentIndex/04c2b4ba-6049-4a6a-8360-8ad40d6ddf6b.vsidx


BIN
.vs/Ropin.Inspection.Api/FileContentIndex/2ca5332d-8b18-41c1-8456-287318937e2d.vsidx → .vs/Ropin.Inspection.Api/FileContentIndex/1a10b504-30be-4a6d-b9dc-879d59c98028.vsidx


BIN
.vs/Ropin.Inspection.Api/FileContentIndex/67d8f1e4-38e9-4848-a82c-3ab22c7ce789.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/7d866426-858b-41e0-a4cb-530cdebd2300.vsidx → .vs/Ropin.Inspection.Api/FileContentIndex/a06bb213-6eb6-4fb2-be26-6f55b7e23e03.vsidx


BIN
.vs/Ropin.Inspection.Api/FileContentIndex/93a0e32e-cde7-4b8b-b9fc-ee1ae84fcd8d.vsidx → .vs/Ropin.Inspection.Api/FileContentIndex/a5bdcd84-8aa7-4134-8905-a2d42de6cb12.vsidx


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


BIN
.vs/Ropin.Inspection.Api/FileContentIndex/73dd0c29-d304-4ca6-a0ea-47b4642d6191.vsidx → .vs/Ropin.Inspection.Api/FileContentIndex/abd5d01e-38ec-41c0-9a49-45075d9158c5.vsidx


BIN
.vs/Ropin.Inspection.Api/FileContentIndex/2c3708d9-84c8-41c7-982b-8d4fff3f2f1b.vsidx → .vs/Ropin.Inspection.Api/FileContentIndex/ac8d83de-56c4-44a8-aae4-95b765142de8.vsidx


BIN
.vs/Ropin.Inspection.Api/FileContentIndex/bb42f8d8-639c-4614-86e4-5acf837f5722.vsidx


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


BIN
.vs/Ropin.Inspection.Api/FileContentIndex/dd7c5fc3-9ce7-40ed-b0e6-f760b6bec0cc.vsidx → .vs/Ropin.Inspection.Api/FileContentIndex/cacc7f19-9061-409f-86c6-a0f7952f19eb.vsidx


BIN
.vs/Ropin.Inspection.Api/FileContentIndex/fdd6a538-902c-4b7e-b35f-bfbb79b6b107.vsidx → .vs/Ropin.Inspection.Api/FileContentIndex/d66ea7ee-bbb0-447f-8ccd-8f3d80d23a1a.vsidx


BIN
.vs/Ropin.Inspection.Api/FileContentIndex/3d9cd55f-c39f-418b-af0d-3bb9fb9a0eb8.vsidx → .vs/Ropin.Inspection.Api/FileContentIndex/e51e62a2-0645-4918-8605-e70f423f6c1c.vsidx


BIN
.vs/Ropin.Inspection.Api/v17/.suo


+ 1 - 1
Ropin.Environmentally.AlarmService/Properties/launchSettings.json

@@ -13,7 +13,7 @@
       "launchBrowser": true,
       "launchUrl": "swagger",
       "environmentVariables": {
-        "ASPNETCORE_ENVIRONMENT": "Development"
+        "ASPNETCORE_ENVIRONMENT": "Production" //Development
       },
       "dotnetRunMessages": "true",
       "applicationUrl": "https://localhost:5002;http://localhost:5003"

+ 3 - 3
Ropin.Environmentally.AlarmService/appsettings.Development.json

@@ -13,14 +13,14 @@
   },
   "CofingSet": {
     "RabbitMQ": {
-      "QueueName": "test_queue", //消息队列名称rabbit.alarmDevice
+      "QueueName": "rabbit.alarmDevice", //消息队列名称
       "HostName": "124.71.132.255", //IP地址
       "Port": 5673, //端口号
       "UserName": "admin", //用户账号
       "VirtualHost": "/",
       "Password": "ropin@epe", //用户密码
-      "ExchangeName": "test_exchange", //交换机名称【消息队列名称+.DirectExchange】
-      "RoutingKey": "test_queue" //路由键【消息队列名称+.key】
+      "ExchangeName": "rabbit.alarmDevice.DirectExchange", //交换机名称【消息队列名称+.DirectExchange】
+      "RoutingKey": "rabbit.alarmDevice.key" //路由键【消息队列名称+.key】
     },
     "PublicPushMessageAPI": "http://124.71.132.255:93/api/Account/PublicPushMessage"
     //"PublicPushMessageAPI": "https://www.dgt.net.cn:4443/api/Account/PublicPushMessage",

BIN
Ropin.Environmentally.AlarmService/bin/Debug/net5.0/Ropin.Core.Extensions.dll


BIN
Ropin.Environmentally.AlarmService/bin/Debug/net5.0/Ropin.Core.Extensions.pdb


BIN
Ropin.Environmentally.AlarmService/bin/Debug/net5.0/Ropin.Environmentally.AlarmService.dll


BIN
Ropin.Environmentally.AlarmService/bin/Debug/net5.0/Ropin.Environmentally.AlarmService.pdb


BIN
Ropin.Environmentally.AlarmService/bin/Debug/net5.0/Ropin.Inspection.Model.dll


BIN
Ropin.Environmentally.AlarmService/bin/Debug/net5.0/Ropin.Inspection.Model.pdb


BIN
Ropin.Environmentally.AlarmService/bin/Debug/net5.0/Ropin.Inspection.Repository.dll


BIN
Ropin.Environmentally.AlarmService/bin/Debug/net5.0/Ropin.Inspection.Repository.pdb


BIN
Ropin.Environmentally.AlarmService/bin/Debug/net5.0/Ropin.Inspection.Service.dll


BIN
Ropin.Environmentally.AlarmService/bin/Debug/net5.0/Ropin.Inspection.Service.pdb


BIN
Ropin.Environmentally.AlarmService/bin/Debug/net5.0/Ropin.Inspection.Tasks.dll


BIN
Ropin.Environmentally.AlarmService/bin/Debug/net5.0/Ropin.Inspection.Tasks.pdb


+ 3 - 3
Ropin.Environmentally.AlarmService/bin/Debug/net5.0/appsettings.Development.json

@@ -13,14 +13,14 @@
   },
   "CofingSet": {
     "RabbitMQ": {
-      "QueueName": "test_queue", //消息队列名称rabbit.alarmDevice
+      "QueueName": "rabbit.alarmDevice", //消息队列名称
       "HostName": "124.71.132.255", //IP地址
       "Port": 5673, //端口号
       "UserName": "admin", //用户账号
       "VirtualHost": "/",
       "Password": "ropin@epe", //用户密码
-      "ExchangeName": "test_exchange", //交换机名称【消息队列名称+.DirectExchange】
-      "RoutingKey": "test_queue" //路由键【消息队列名称+.key】
+      "ExchangeName": "rabbit.alarmDevice.DirectExchange", //交换机名称【消息队列名称+.DirectExchange】
+      "RoutingKey": "rabbit.alarmDevice.key" //路由键【消息队列名称+.key】
     },
     "PublicPushMessageAPI": "http://124.71.132.255:93/api/Account/PublicPushMessage"
     //"PublicPushMessageAPI": "https://www.dgt.net.cn:4443/api/Account/PublicPushMessage",

+ 0 - 0
Ropin.Environmentally.AlarmService/bin/Debug/net5.0/logs/2025/202506/20250611.txt


+ 0 - 0
Ropin.Environmentally.AlarmService/bin/Debug/net5.0/logs/2025/202506/20250611_error.txt


+ 0 - 0
Ropin.Environmentally.AlarmService/bin/Debug/net5.0/logs/2025/202506/20250612.txt


+ 0 - 0
Ropin.Environmentally.AlarmService/bin/Debug/net5.0/logs/2025/202506/20250612_error.txt


BIN
Ropin.Environmentally.AlarmService/obj/Debug/net5.0/Ropin.Environmentally.AlarmService.csproj.AssemblyReference.cache


BIN
Ropin.Environmentally.AlarmService/obj/Debug/net5.0/Ropin.Environmentally.AlarmService.dll


BIN
Ropin.Environmentally.AlarmService/obj/Debug/net5.0/Ropin.Environmentally.AlarmService.pdb


+ 38 - 40
Ropin.Inspection.Api/Controllers/Base/AIController.cs

@@ -86,7 +86,7 @@ namespace Ropin.Inspection.Api.Controllers.Base
         public async Task<ApiResult> AiAlmSaveMessage()
         {
             //40124884581189;33379713109829
-            var data = await aIHelper.GetAlmDispose("", 1, 100, 40124884581189);
+            var data = await aIHelper.GetAlmDispose("", 1, 10, 40124884581189);
             //var data = await aIHelper.GetHistoricAlmrecord("", 1, 10, 40124884581189);
             if (data != null)
             {
@@ -160,45 +160,43 @@ namespace Ropin.Inspection.Api.Controllers.Base
         [Route("/device/business/generalApp/pushData/alarmData/{deviceNo}")]
         public async Task<ApiResultModel<object>> AlarmData([FromRoute] string deviceNo, [FromBody] AlarmDataModel alarmDataModel)
         {
-            Console.WriteLine("/device/business/generalApp/pushData/alarmData");
-            Console.WriteLine("deviceNo" + deviceNo);
-            //var devIds = await _vmcCameraService.GetCameraByTDH(alarmDataModel.deviceNo);
-            //int row = 0;
-            //foreach (var x in devIds)
-            //{
-            //    List<MessageFile> messageFiles = new List<MessageFile>();
-            //    var textJson = new
-            //    {
-            //        PanoramaId = alarmDataModel.panoramaId,
-            //        PanoramaUrl = alarmDataModel.panoramaUrl,
-            //        RoiJson = alarmDataModel.roiJson,
-            //        NonRoiJson = alarmDataModel.nonRoiJson,
-            //        DetectionFrameJson = alarmDataModel.detectionFrameJson
-            //    };
-            //    var datas = JsonConvert.SerializeObject(textJson);
-            //    MessageFile messageFile = new MessageFile();
-            //    messageFile.Text = datas;
-            //    messageFile.Type = "FILE_TYP_006";
-            //    messageFiles.Add(messageFile);
-            //    TpushMsgModel model = new TpushMsgModel
-            //    {
-            //        C_DevStoreCode = x,
-            //        C_MsgTypeCode = "MSG_TYPE_024",
-            //        Subject = "AI盒子报警",
-            //        Msg = alarmDataModel.alarmType,
-            //        UserName = "AI盒子",
-            //        UserMobile = "",
-            //        CreateOn = alarmDataModel.captureTime,
-            //        GenerationType = 1,
-            //        msgStatus = 1,
-            //        FileList = messageFiles
-            //    };
-            //    bool bol = await _pushMsgService.PushAlarmMsgAsync(model, model.Subject);
-            //    log.Info($"执行发送结果=[{bol}]");
-            //    if (bol) { row++; }
-            //}
-            //return ApiResultModel<object>.GetSuccess(row);
-            return await Task.FromResult(ApiResultModel<object>.GetSuccess(new object { }));
+            var devIds = await _vmcCameraService.GetCameraByTDH(alarmDataModel.deviceNo);
+            int row = 0;
+            foreach (var x in devIds)
+            {
+                List<MessageFile> messageFiles = new List<MessageFile>();
+                var textJson = new
+                {
+                    PanoramaId = alarmDataModel.panoramaId,
+                    PanoramaUrl = alarmDataModel.panoramaUrl,
+                    RoiJson = alarmDataModel.roiJson,
+                    NonRoiJson = alarmDataModel.nonRoiJson,
+                    DetectionFrameJson = alarmDataModel.detectionFrameJson
+                };
+                var datas = JsonConvert.SerializeObject(textJson);
+                MessageFile messageFile = new MessageFile();
+                messageFile.Text = datas;
+                messageFile.Type = "FILE_TYP_006";
+                messageFiles.Add(messageFile);
+                TpushMsgModel model = new TpushMsgModel
+                {
+                    C_DevStoreCode = x,
+                    C_MsgTypeCode = "MSG_TYPE_024",
+                    Subject = "AI盒子报警",
+                    Msg = alarmDataModel.alarmType,
+                    UserName = "AI盒子",
+                    UserMobile = "",
+                    CreateOn = alarmDataModel.captureTime,
+                    GenerationType = 1,
+                    msgStatus = 1,
+                    FileList = messageFiles
+                };
+                bool bol = await _pushMsgService.PushAlarmMsgAsync(model, model.Subject);
+                log.Info($"执行发送结果=[{bol}]");
+                if (bol) { row++; }
+            }
+            return ApiResultModel<object>.GetSuccess(row);
+            //return await Task.FromResult(ApiResultModel<object>.GetSuccess(new object { }));
         }
 
         /// <summary>