From 0ff57d952d4ad982d3e020a0f1621bb3ebcd5915 Mon Sep 17 00:00:00 2001 From: liuzl Date: Mon, 9 Jan 2023 15:14:06 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=8B=8F=E5=B7=9E?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E6=95=B0=E6=8D=AE=E6=8E=A8=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ResultInfos/IResultService.cs | 12 +- .../ResultInfos/ResultService.cs | 5 +- .../SubscribeInfo/SubscribeService.cs | 4 - Waste.Application/ThirdApiInfo/OpenService.cs | 143 ++++++++++-------- Waste.Application/Waste.Application.xml | 35 +++-- .../waste.ybhdmob.com.pubxml.user | 3 +- Waste.Web.Entry/Waste.Web.Entry.csproj.user | 2 +- 7 files changed, 110 insertions(+), 94 deletions(-) diff --git a/Waste.Application/ResultInfos/IResultService.cs b/Waste.Application/ResultInfos/IResultService.cs index 30220d7..b72d502 100644 --- a/Waste.Application/ResultInfos/IResultService.cs +++ b/Waste.Application/ResultInfos/IResultService.cs @@ -1,9 +1,6 @@ using Nirvana.Common; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; using System.Threading.Tasks; +using Waste.Application.SubscribeInfo; namespace Waste.Application { @@ -53,5 +50,12 @@ namespace Waste.Application /// /// Task> GetListByEquAsync(ResultListByEquC2SDto input); + + /// + /// 给第三方推送消息 + /// + /// + /// + Task SendMessageToThird(SendThirdMessageSubscribeS2SDto input); } } \ No newline at end of file diff --git a/Waste.Application/ResultInfos/ResultService.cs b/Waste.Application/ResultInfos/ResultService.cs index db97437..3c1f278 100644 --- a/Waste.Application/ResultInfos/ResultService.cs +++ b/Waste.Application/ResultInfos/ResultService.cs @@ -1,9 +1,6 @@ using DotNetCore.CAP; -using Furion; using Furion.DependencyInjection; using Furion.DistributedIDGenerator; -using Furion.RemoteRequest.Extensions; -using Furion.TaskScheduler; using Mapster; using Nirvana.Common; using SqlSugar; @@ -449,7 +446,7 @@ namespace Waste.Application /// /// /// - private async Task SendMessageToThird(SendThirdMessageSubscribeS2SDto input) + public async Task SendMessageToThird(SendThirdMessageSubscribeS2SDto input) { if (input.Weight <= 0) { diff --git a/Waste.Application/SubscribeInfo/SubscribeService.cs b/Waste.Application/SubscribeInfo/SubscribeService.cs index 818fedb..5e338a7 100644 --- a/Waste.Application/SubscribeInfo/SubscribeService.cs +++ b/Waste.Application/SubscribeInfo/SubscribeService.cs @@ -1,8 +1,6 @@ using DotNetCore.CAP; -using Furion; using Furion.DependencyInjection; using Furion.DistributedIDGenerator; -using Furion.Logging.Extensions; using Furion.RemoteRequest.Extensions; using Mapster; using Microsoft.Extensions.DependencyInjection; @@ -10,8 +8,6 @@ using Newtonsoft.Json; using Nirvana.Common; using SqlSugar; using System; -using System.Collections.Generic; -using System.Linq; using System.Text; using System.Threading.Tasks; using Waste.Application.ThirdApiInfo; diff --git a/Waste.Application/ThirdApiInfo/OpenService.cs b/Waste.Application/ThirdApiInfo/OpenService.cs index ac5ba28..9441ccf 100644 --- a/Waste.Application/ThirdApiInfo/OpenService.cs +++ b/Waste.Application/ThirdApiInfo/OpenService.cs @@ -215,6 +215,17 @@ namespace Waste.Application.ThirdApiInfo wastetype = type, weight = weight }); + + //推送数据给第三方 + await _resultService.SendMessageToThird(new SendThirdMessageSubscribeS2SDto + { + DeviceId = device.Id, + WasteSType = "", + Time = DateTime.Now, + TrashCode = returndata.trash, + WasteType = type, + Weight = weight.ToDecimal() + }); } else { @@ -238,38 +249,6 @@ namespace Waste.Application.ThirdApiInfo } } - /// - /// 16进制转汉字 - /// - /// - /// - private string GetChsFromHex(string hex) - { - if (hex == null) - return ""; - if (hex.Length % 2 != 0) - { - hex += "20";//空格 - } - // 需要将 hex 转换成 byte 数组。 - byte[] bytes = new byte[hex.Length / 2]; - for (int i = 0; i < bytes.Length; i++) - { - try - { - // 每两个字符是一个 byte。 - bytes[i] = byte.Parse(hex.Substring(i * 2, 2), - System.Globalization.NumberStyles.HexNumber); - } - catch - { - } - } - // 获得 GB2312,Chinese Simplified。 - Encoding chs = Encoding.GetEncoding("gb2312"); - return chs.GetString(bytes); - } - /// /// 16进制转10进制 /// @@ -377,40 +356,6 @@ namespace Waste.Application.ThirdApiInfo return new ResultInfo(ResultState.SUCCESS, "success", data); } - private int TrashType(string type) - { - if (type == "厨余垃圾") return 1; - else if (type == "可回收物") return 2; - else if (type == "有害垃圾") return 3; - else if (type == "其他垃圾") return 4; - else return 0; - } - - private int GetTimestamp(DateTime time) - { - DateTime dateTimeStart = TimeZoneInfo.ConvertTimeToUtc(new DateTime(1970, 1, 1, 8, 0, 0)); - int timestamp = Convert.ToInt32((time - dateTimeStart).TotalSeconds); - return timestamp; - } - - /// - /// 字节数组转16进制 - /// - /// - /// - private string BytesToHexStr(byte[] bt) - { - string returnStr = ""; - if (bt != null) - { - for (int i = 0; i < bt.Length; i++) - { - returnStr += bt[i].ToString("X2"); - } - } - return returnStr; - } - /// /// 更新设备版本信息 /// @@ -497,6 +442,72 @@ namespace Waste.Application.ThirdApiInfo return returndata; } + /// + /// 16进制转汉字 + /// + /// + /// + private string GetChsFromHex(string hex) + { + if (hex == null) + return ""; + if (hex.Length % 2 != 0) + { + hex += "20";//空格 + } + // 需要将 hex 转换成 byte 数组。 + byte[] bytes = new byte[hex.Length / 2]; + for (int i = 0; i < bytes.Length; i++) + { + try + { + // 每两个字符是一个 byte。 + bytes[i] = byte.Parse(hex.Substring(i * 2, 2), + System.Globalization.NumberStyles.HexNumber); + } + catch + { + } + } + // 获得 GB2312,Chinese Simplified。 + Encoding chs = Encoding.GetEncoding("gb2312"); + return chs.GetString(bytes); + } + + private int TrashType(string type) + { + if (type == "厨余垃圾") return 1; + else if (type == "可回收物") return 2; + else if (type == "有害垃圾") return 3; + else if (type == "其他垃圾") return 4; + else return 0; + } + + private int GetTimestamp(DateTime time) + { + DateTime dateTimeStart = TimeZoneInfo.ConvertTimeToUtc(new DateTime(1970, 1, 1, 8, 0, 0)); + int timestamp = Convert.ToInt32((time - dateTimeStart).TotalSeconds); + return timestamp; + } + + /// + /// 字节数组转16进制 + /// + /// + /// + private string BytesToHexStr(byte[] bt) + { + string returnStr = ""; + if (bt != null) + { + for (int i = 0; i < bt.Length; i++) + { + returnStr += bt[i].ToString("X2"); + } + } + return returnStr; + } + /// /// wifi数据解析 /// diff --git a/Waste.Application/Waste.Application.xml b/Waste.Application/Waste.Application.xml index 4e94821..d7c3c67 100644 --- a/Waste.Application/Waste.Application.xml +++ b/Waste.Application/Waste.Application.xml @@ -2106,6 +2106,13 @@ + + + 给第三方推送消息 + + + + 投放记录 @@ -3330,13 +3337,6 @@ - - - 16进制转汉字 - - - - 16进制转10进制 @@ -3358,13 +3358,6 @@ - - - 字节数组转16进制 - - - - 更新设备版本信息 @@ -3379,6 +3372,20 @@ + + + 16进制转汉字 + + + + + + + 字节数组转16进制 + + + + wifi数据解析 diff --git a/Waste.Web.Entry/Properties/PublishProfiles/waste.ybhdmob.com.pubxml.user b/Waste.Web.Entry/Properties/PublishProfiles/waste.ybhdmob.com.pubxml.user index e68ee1f..f786698 100644 --- a/Waste.Web.Entry/Properties/PublishProfiles/waste.ybhdmob.com.pubxml.user +++ b/Waste.Web.Entry/Properties/PublishProfiles/waste.ybhdmob.com.pubxml.user @@ -5,6 +5,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121. <_PublishTargetUrl>D:\webpublish\waste.ybhdmob.com - True|2022-09-14T02:54:14.3430113Z;True|2022-08-24T10:11:56.9315738+08:00;True|2022-07-28T16:27:26.4646475+08:00;True|2022-07-26T18:02:16.8734313+08:00;True|2022-07-26T17:47:48.4802128+08:00;True|2022-07-26T10:16:29.8933802+08:00;True|2022-07-26T09:36:14.5292489+08:00;True|2022-07-12T17:26:37.8289741+08:00;True|2022-07-07T15:15:35.7942932+08:00;True|2022-07-07T14:38:14.6580938+08:00;True|2022-07-07T14:32:33.3480279+08:00;True|2022-07-06T08:59:01.5108509+08:00;True|2022-06-21T14:41:45.3390865+08:00;False|2022-06-21T14:31:42.6318272+08:00;True|2022-06-21T14:07:42.4016410+08:00;True|2022-06-20T15:37:14.0002383+08:00;True|2022-06-20T08:32:15.3735483+08:00;True|2022-06-18T10:39:25.0997617+08:00;True|2022-06-15T11:23:32.6444305+08:00;True|2022-06-07T10:26:48.8057155+08:00;True|2022-05-19T14:38:58.4564787+08:00;True|2022-05-19T10:00:43.2712891+08:00;True|2022-05-17T18:00:53.2618269+08:00;True|2022-05-17T17:55:33.2053115+08:00;True|2022-05-17T17:38:48.8279756+08:00;True|2022-05-16T16:44:49.1758100+08:00;True|2022-03-30T10:54:32.5565057+08:00;True|2022-03-30T10:53:48.9972377+08:00;True|2022-03-30T10:50:31.5745775+08:00;True|2022-03-30T10:47:50.1605527+08:00;True|2022-03-30T10:15:59.9812921+08:00;True|2022-03-29T09:29:45.1039655+08:00;True|2022-03-29T09:21:47.0149226+08:00;True|2022-03-28T10:33:44.7419612+08:00;True|2022-03-28T10:22:40.9448563+08:00;True|2022-03-28T10:19:15.1438519+08:00;True|2022-01-20T10:39:53.2000547+08:00;True|2021-11-23T17:45:59.0399234+08:00;True|2021-11-23T14:52:52.6108389+08:00;True|2021-11-23T13:47:55.8909321+08:00;True|2021-11-23T13:46:38.7796888+08:00;True|2021-11-23T13:42:14.9551976+08:00;True|2021-11-23T13:40:54.9093258+08:00;True|2021-11-23T13:31:49.0003794+08:00;True|2021-11-23T13:29:43.7414639+08:00;True|2021-10-12T15:18:06.6012215+08:00;True|2021-10-12T15:11:17.7752651+08:00;True|2021-10-12T14:54:39.0578509+08:00;True|2021-10-12T11:25:18.7098128+08:00;True|2021-09-18T15:34:20.7386778+08:00;True|2021-09-15T11:09:28.0068993+08:00;True|2021-09-07T12:19:33.4635211+08:00;True|2021-09-07T11:36:13.4563799+08:00;True|2021-09-03T15:41:46.2819586+08:00;True|2021-08-31T17:16:16.0336390+08:00;True|2021-08-31T16:05:30.7224440+08:00;True|2021-08-23T09:44:46.2114418+08:00;True|2021-08-19T20:32:56.2854974+08:00;True|2021-08-18T14:01:33.0411246+08:00;True|2021-08-17T10:05:15.4299188+08:00;True|2021-08-13T19:32:53.6307075+08:00;True|2021-08-13T19:29:50.5876782+08:00;True|2021-08-13T19:14:14.2545106+08:00;True|2021-08-13T15:24:09.4521125+08:00;True|2021-08-13T14:59:40.4579407+08:00;True|2021-08-13T10:02:29.7650246+08:00;True|2021-08-13T09:45:10.6245894+08:00;True|2021-08-12T20:11:21.5851106+08:00;True|2021-08-12T20:00:42.4820498+08:00;True|2021-08-12T18:44:08.3079650+08:00;True|2021-08-12T18:35:47.4730766+08:00;True|2021-08-12T18:32:10.9361388+08:00;True|2021-08-12T18:30:21.4006961+08:00;True|2021-08-12T18:13:00.9624470+08:00;True|2021-08-12T18:10:12.3459311+08:00;True|2021-08-12T18:09:18.8656414+08:00;True|2021-08-12T17:35:24.7213607+08:00;True|2021-08-11T07:54:57.1322848+08:00;True|2021-08-10T10:16:40.7495389+08:00;True|2021-08-03T11:16:02.7897282+08:00;True|2021-08-02T16:39:27.2332369+08:00;True|2021-08-02T15:07:40.7995318+08:00;True|2021-08-02T14:32:29.6885424+08:00;True|2021-08-02T14:31:18.6578543+08:00;True|2021-08-02T14:27:57.1301002+08:00;True|2021-08-02T10:55:40.3542370+08:00;True|2021-08-02T09:44:28.0994056+08:00;True|2021-08-01T13:49:38.4071985+08:00;True|2021-08-01T13:36:45.5372120+08:00;True|2021-08-01T11:00:19.6165520+08:00;True|2021-08-01T10:38:51.4029710+08:00;True|2021-07-31T20:27:53.6583811+08:00;True|2021-07-31T18:35:23.4214441+08:00;True|2021-07-31T17:34:14.0712243+08:00;True|2021-07-31T14:50:43.2065556+08:00;True|2021-07-30T17:59:30.2223340+08:00;True|2021-07-30T17:57:35.9412910+08:00;True|2021-07-30T17:07:58.3305971+08:00;True|2021-07-30T17:04:10.9244859+08:00;True|2021-07-30T17:02:12.1943634+08:00;True|2021-07-30T16:16:22.2838331+08:00;True|2021-07-30T15:05:26.5664155+08:00;True|2021-07-30T14:57:59.1966108+08:00;True|2021-07-30T14:54:25.8172908+08:00;True|2021-07-30T14:52:20.9209995+08:00;True|2021-07-30T14:35:29.5239463+08:00;True|2021-07-30T09:32:38.2676032+08:00;True|2021-07-30T09:14:42.6170851+08:00;True|2021-07-29T19:06:09.1449349+08:00;True|2021-06-11T08:16:29.9542894+08:00;True|2021-06-04T14:46:02.2707457+08:00;True|2021-06-02T15:08:52.8245632+08:00;True|2021-06-02T15:05:50.3614099+08:00;True|2021-06-02T14:59:32.3690948+08:00;True|2021-06-02T14:10:25.1182836+08:00;True|2021-06-02T14:09:54.9215833+08:00;True|2021-06-01T10:41:54.9488501+08:00;True|2021-06-01T10:38:56.0283198+08:00;True|2021-05-28T13:59:02.2308877+08:00;True|2021-05-28T11:56:26.6796406+08:00;True|2021-05-28T11:28:00.4087907+08:00;True|2021-05-27T16:18:09.5993838+08:00;True|2021-05-27T16:07:31.3484951+08:00;True|2021-05-27T11:30:37.9119310+08:00;True|2021-05-27T11:28:35.5374674+08:00;True|2021-05-27T08:00:09.1625592+08:00;True|2021-05-26T20:42:17.0852150+08:00;True|2021-05-26T20:36:49.7527415+08:00;True|2021-05-25T17:57:31.8791293+08:00;True|2021-05-25T13:49:29.6488978+08:00;True|2021-05-25T13:48:24.6686105+08:00;True|2021-05-25T13:25:41.2512493+08:00;True|2021-05-24T17:55:33.3800078+08:00;True|2021-05-20T14:35:30.6957985+08:00;True|2021-05-20T13:17:22.6192995+08:00;True|2021-05-20T10:51:38.1268169+08:00;True|2021-05-19T19:50:03.7000224+08:00;True|2021-05-19T19:44:27.2518811+08:00;True|2021-05-19T19:43:26.5916681+08:00;True|2021-05-19T19:36:29.3197365+08:00;True|2021-05-19T19:30:00.3802430+08:00;True|2021-05-19T17:55:23.7939835+08:00;True|2021-05-19T11:05:17.9043392+08:00;True|2021-05-19T10:19:38.4839988+08:00;True|2021-05-19T10:17:19.7430612+08:00;True|2021-05-19T10:13:23.0031721+08:00;True|2021-05-19T10:06:03.9881599+08:00;True|2021-05-18T14:39:03.8876574+08:00;True|2021-05-18T14:23:46.9818836+08:00;True|2021-05-18T14:19:56.2382079+08:00;True|2021-05-18T11:29:53.5497590+08:00;True|2021-05-18T11:16:18.0123853+08:00;True|2021-05-17T18:59:52.4159105+08:00;True|2021-05-17T18:53:37.9438984+08:00;True|2021-05-17T18:48:14.9625161+08:00;True|2021-05-17T17:46:03.7723404+08:00;True|2021-05-17T17:14:20.2312990+08:00;True|2021-05-17T16:44:34.5837616+08:00;True|2021-05-17T16:25:20.1087804+08:00;True|2021-05-17T11:35:27.9388562+08:00; + True|2023-01-09T06:37:17.3219940Z;False|2023-01-09T14:36:37.2025779+08:00;True|2022-09-14T10:54:14.3430113+08:00;True|2022-08-24T10:11:56.9315738+08:00;True|2022-07-28T16:27:26.4646475+08:00;True|2022-07-26T18:02:16.8734313+08:00;True|2022-07-26T17:47:48.4802128+08:00;True|2022-07-26T10:16:29.8933802+08:00;True|2022-07-26T09:36:14.5292489+08:00;True|2022-07-12T17:26:37.8289741+08:00;True|2022-07-07T15:15:35.7942932+08:00;True|2022-07-07T14:38:14.6580938+08:00;True|2022-07-07T14:32:33.3480279+08:00;True|2022-07-06T08:59:01.5108509+08:00;True|2022-06-21T14:41:45.3390865+08:00;False|2022-06-21T14:31:42.6318272+08:00;True|2022-06-21T14:07:42.4016410+08:00;True|2022-06-20T15:37:14.0002383+08:00;True|2022-06-20T08:32:15.3735483+08:00;True|2022-06-18T10:39:25.0997617+08:00;True|2022-06-15T11:23:32.6444305+08:00;True|2022-06-07T10:26:48.8057155+08:00;True|2022-05-19T14:38:58.4564787+08:00;True|2022-05-19T10:00:43.2712891+08:00;True|2022-05-17T18:00:53.2618269+08:00;True|2022-05-17T17:55:33.2053115+08:00;True|2022-05-17T17:38:48.8279756+08:00;True|2022-05-16T16:44:49.1758100+08:00;True|2022-03-30T10:54:32.5565057+08:00;True|2022-03-30T10:53:48.9972377+08:00;True|2022-03-30T10:50:31.5745775+08:00;True|2022-03-30T10:47:50.1605527+08:00;True|2022-03-30T10:15:59.9812921+08:00;True|2022-03-29T09:29:45.1039655+08:00;True|2022-03-29T09:21:47.0149226+08:00;True|2022-03-28T10:33:44.7419612+08:00;True|2022-03-28T10:22:40.9448563+08:00;True|2022-03-28T10:19:15.1438519+08:00;True|2022-01-20T10:39:53.2000547+08:00;True|2021-11-23T17:45:59.0399234+08:00;True|2021-11-23T14:52:52.6108389+08:00;True|2021-11-23T13:47:55.8909321+08:00;True|2021-11-23T13:46:38.7796888+08:00;True|2021-11-23T13:42:14.9551976+08:00;True|2021-11-23T13:40:54.9093258+08:00;True|2021-11-23T13:31:49.0003794+08:00;True|2021-11-23T13:29:43.7414639+08:00;True|2021-10-12T15:18:06.6012215+08:00;True|2021-10-12T15:11:17.7752651+08:00;True|2021-10-12T14:54:39.0578509+08:00;True|2021-10-12T11:25:18.7098128+08:00;True|2021-09-18T15:34:20.7386778+08:00;True|2021-09-15T11:09:28.0068993+08:00;True|2021-09-07T12:19:33.4635211+08:00;True|2021-09-07T11:36:13.4563799+08:00;True|2021-09-03T15:41:46.2819586+08:00;True|2021-08-31T17:16:16.0336390+08:00;True|2021-08-31T16:05:30.7224440+08:00;True|2021-08-23T09:44:46.2114418+08:00;True|2021-08-19T20:32:56.2854974+08:00;True|2021-08-18T14:01:33.0411246+08:00;True|2021-08-17T10:05:15.4299188+08:00;True|2021-08-13T19:32:53.6307075+08:00;True|2021-08-13T19:29:50.5876782+08:00;True|2021-08-13T19:14:14.2545106+08:00;True|2021-08-13T15:24:09.4521125+08:00;True|2021-08-13T14:59:40.4579407+08:00;True|2021-08-13T10:02:29.7650246+08:00;True|2021-08-13T09:45:10.6245894+08:00;True|2021-08-12T20:11:21.5851106+08:00;True|2021-08-12T20:00:42.4820498+08:00;True|2021-08-12T18:44:08.3079650+08:00;True|2021-08-12T18:35:47.4730766+08:00;True|2021-08-12T18:32:10.9361388+08:00;True|2021-08-12T18:30:21.4006961+08:00;True|2021-08-12T18:13:00.9624470+08:00;True|2021-08-12T18:10:12.3459311+08:00;True|2021-08-12T18:09:18.8656414+08:00;True|2021-08-12T17:35:24.7213607+08:00;True|2021-08-11T07:54:57.1322848+08:00;True|2021-08-10T10:16:40.7495389+08:00;True|2021-08-03T11:16:02.7897282+08:00;True|2021-08-02T16:39:27.2332369+08:00;True|2021-08-02T15:07:40.7995318+08:00;True|2021-08-02T14:32:29.6885424+08:00;True|2021-08-02T14:31:18.6578543+08:00;True|2021-08-02T14:27:57.1301002+08:00;True|2021-08-02T10:55:40.3542370+08:00;True|2021-08-02T09:44:28.0994056+08:00;True|2021-08-01T13:49:38.4071985+08:00;True|2021-08-01T13:36:45.5372120+08:00;True|2021-08-01T11:00:19.6165520+08:00;True|2021-08-01T10:38:51.4029710+08:00;True|2021-07-31T20:27:53.6583811+08:00;True|2021-07-31T18:35:23.4214441+08:00;True|2021-07-31T17:34:14.0712243+08:00;True|2021-07-31T14:50:43.2065556+08:00;True|2021-07-30T17:59:30.2223340+08:00;True|2021-07-30T17:57:35.9412910+08:00;True|2021-07-30T17:07:58.3305971+08:00; + \ No newline at end of file diff --git a/Waste.Web.Entry/Waste.Web.Entry.csproj.user b/Waste.Web.Entry/Waste.Web.Entry.csproj.user index f9a02f1..59133b9 100644 --- a/Waste.Web.Entry/Waste.Web.Entry.csproj.user +++ b/Waste.Web.Entry/Waste.Web.Entry.csproj.user @@ -3,6 +3,6 @@ RazorPageScaffolder root/Common/RazorPage - H:\liuzl_ybhdmob\Waste\Waste.Web.Entry\Properties\PublishProfiles\waste.ybhdmob.com.pubxml + E:\liuzl_ybhdmob\巨天垃圾分类\Waste\Waste.Web.Entry\Properties\PublishProfiles\waste.ybhdmob.com.pubxml \ No newline at end of file From a50b3d7dff7f3546abfbbf4a43895548748b0744 Mon Sep 17 00:00:00 2001 From: liuzl Date: Mon, 26 Jun 2023 14:48:03 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E5=8D=83=E7=81=AF=E9=95=87=E6=89=B9?= =?UTF-8?q?=E9=87=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Waste.Application/Device/DeviceAppService.cs | 24 ++++++-- Waste.Application/Device/DeviceService.cs | 55 ++++++++++++++++--- Waste.Application/Device/IDeviceService.cs | 21 +++++-- Waste.Application/Waste.Application.xml | 18 ++++++ ...y-80becbe4-b8da-478f-8e04-2ee72229ce40.xml | 16 ++++++ 5 files changed, 113 insertions(+), 21 deletions(-) create mode 100644 Waste.Web.Entry/DataProtection/key-80becbe4-b8da-478f-8e04-2ee72229ce40.xml diff --git a/Waste.Application/Device/DeviceAppService.cs b/Waste.Application/Device/DeviceAppService.cs index 20ae37a..6a44632 100644 --- a/Waste.Application/Device/DeviceAppService.cs +++ b/Waste.Application/Device/DeviceAppService.cs @@ -1,13 +1,9 @@ using Furion.DynamicApiController; +using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Nirvana.Common; -using SqlSugar; using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; using System.Threading.Tasks; -using Waste.Domain; namespace Waste.Application { @@ -17,10 +13,12 @@ namespace Waste.Application public class DeviceAppService : IDynamicApiController { private readonly IDeviceService _deviceService; + public DeviceAppService(IDeviceService deviceService) { _deviceService = deviceService; } + /// /// 设备列表 /// @@ -31,6 +29,7 @@ namespace Waste.Application { return await _deviceService.GetListAsync(param); } + /// /// 信息提交 /// @@ -40,6 +39,7 @@ namespace Waste.Application { return await _deviceService.SubmitFormAsync(role); } + /// /// 批量操作 /// @@ -49,6 +49,7 @@ namespace Waste.Application { return await _deviceService.BatchSetAsync(deviceBatchModel); } + /// /// 设备状态修改 /// @@ -61,6 +62,7 @@ namespace Waste.Application { return await _deviceService.SetStatusAsync(id, status); } + /// /// 配置设备推送信息 /// @@ -70,5 +72,15 @@ namespace Waste.Application { return await _deviceService.SetConfigAsync(input); } + + /// + /// 批量配置千灯镇商户推送 + /// + /// + [AllowAnonymous] + public async Task SetQDConfig() + { + await _deviceService.SetQDConfig(); + } } -} +} \ No newline at end of file diff --git a/Waste.Application/Device/DeviceService.cs b/Waste.Application/Device/DeviceService.cs index f6dad4d..b43be3a 100644 --- a/Waste.Application/Device/DeviceService.cs +++ b/Waste.Application/Device/DeviceService.cs @@ -1,15 +1,11 @@ using Furion.DependencyInjection; using Furion.DistributedIDGenerator; -using Furion.DynamicApiController; using Mapster; -using Microsoft.AspNetCore.Mvc; using Nirvana.Common; -using Nirvana.Common.ApiBase; using SqlSugar; using System; using System.Collections.Generic; using System.Linq; -using System.Text; using System.Threading.Tasks; using Waste.Domain; @@ -30,6 +26,7 @@ namespace Waste.Application.Device dbClient = repository.Context; _businessService = businessService; } + /// /// 设备批量操作 /// @@ -46,7 +43,6 @@ namespace Waste.Application.Device //如果是管理员分配 if (currentUser.AccountType == (int)AccountType.platform) { - await dbClient.Updateable().SetColumns(x => new W_Device { Businessid = deviceBatchModel.BusinessId, @@ -121,6 +117,7 @@ namespace Waste.Application.Device Id = devicedata.Id }; } + /// /// 设备详情数据 /// @@ -149,6 +146,7 @@ namespace Waste.Application.Device FacEcode = device.FacEcode }; } + /// /// 获取设备配置详情 /// @@ -156,10 +154,10 @@ namespace Waste.Application.Device /// public async Task GetConfigAsync(Guid id) { - var data= await dbClient.Queryable().FirstAsync(x => x.DeviceId == id); - if(data == null) + var data = await dbClient.Queryable().FirstAsync(x => x.DeviceId == id); + if (data == null) { - data= new W_DeviceConfig(); + data = new W_DeviceConfig(); } return data; } @@ -276,6 +274,7 @@ namespace Waste.Application.Device limit = param.limit }; } + /// /// 配置设备推送信息 /// @@ -307,6 +306,44 @@ namespace Waste.Application.Device return new ResultInfo(ResultState.SUCCESS, "配置成功"); } + /// + /// 批量配置千灯镇商户推送 + /// + /// + public async Task SetQDConfig() + { + string Body = string.Empty; + string Url = "http://36.154.126.138:8817/api/third/postdata"; + var bid = Guid.Parse("08D99B4B-B02D-4E65-8D56-2FD16EC1716F"); + var alldevice = await dbClient.Queryable().Where(x => x.Businessid == bid).Select(x => new W_Device + { + Id = x.Id, + FacEcode=x.FacEcode + }).ToListAsync(); + foreach (var item in alldevice) + { + if (await dbClient.Queryable().AnyAsync(x => x.DeviceId == item.Id)) + { + await dbClient.Updateable().SetColumns(x => new W_DeviceConfig + { + Url = Url, + Body = Body + }).Where(x => x.DeviceId == item.Id).ExecuteCommandAsync(); + } + else + { + var insertdata = new W_DeviceConfig + { + DeviceId = item.Id, + Body = Body, + CreateTime = DateTime.Now, + Url = Url + }; + await dbClient.Insertable(insertdata).ExecuteCommandAsync(); + } + } + } + /// /// 设备状态修改 /// @@ -449,4 +486,4 @@ namespace Waste.Application.Device } } } -} +} \ No newline at end of file diff --git a/Waste.Application/Device/IDeviceService.cs b/Waste.Application/Device/IDeviceService.cs index 7a30171..ced4353 100644 --- a/Waste.Application/Device/IDeviceService.cs +++ b/Waste.Application/Device/IDeviceService.cs @@ -1,9 +1,5 @@ using Nirvana.Common; -using Nirvana.Common.ApiBase; using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; using System.Threading.Tasks; using Waste.Domain; @@ -20,43 +16,56 @@ namespace Waste.Application /// /// Task> GetListAsync(QueryParams param); + /// /// 设备信息提交 /// /// /// Task SubmitFormAsync(DeviceSubmit role); + /// /// 详情 /// /// /// Task DetailAsync(Guid id); + /// /// 设备批量操作 /// /// /// Task BatchSetAsync(DeviceBatchModel deviceBatchModel); + /// /// 设备详情数据 /// /// /// Task DeviceDetailAsync(Guid id); + /// /// 设备状态修改 /// /// 设备ID /// 设备状态,0-停用,1-正常,2-激活 /// - Task SetStatusAsync(Guid id,int status); + Task SetStatusAsync(Guid id, int status); + /// /// 配置设备推送信息 /// /// /// Task SetConfigAsync(DeviceConfigC2SDto input); + + /// + /// 批量配置千灯镇商户推送 + /// + /// + Task SetQDConfig(); + /// /// 获取设备配置详情 /// @@ -64,4 +73,4 @@ namespace Waste.Application /// Task GetConfigAsync(Guid id); } -} +} \ No newline at end of file diff --git a/Waste.Application/Waste.Application.xml b/Waste.Application/Waste.Application.xml index d7c3c67..28d2ba2 100644 --- a/Waste.Application/Waste.Application.xml +++ b/Waste.Application/Waste.Application.xml @@ -589,6 +589,12 @@ + + + 批量配置千灯镇商户推送 + + + 设备管理 @@ -636,6 +642,12 @@ + + + 批量配置千灯镇商户推送 + + + 设备状态修改 @@ -868,6 +880,12 @@ + + + 批量配置千灯镇商户推送 + + + 获取设备配置详情 diff --git a/Waste.Web.Entry/DataProtection/key-80becbe4-b8da-478f-8e04-2ee72229ce40.xml b/Waste.Web.Entry/DataProtection/key-80becbe4-b8da-478f-8e04-2ee72229ce40.xml new file mode 100644 index 0000000..2690c0a --- /dev/null +++ b/Waste.Web.Entry/DataProtection/key-80becbe4-b8da-478f-8e04-2ee72229ce40.xml @@ -0,0 +1,16 @@ + + + 2023-06-26T04:03:32.1101352Z + 2023-06-26T04:03:32.0644029Z + 2023-09-24T04:03:32.0644029Z + + + + + + + ANfcQR1Xd4K1vIjHAszafBN+8YUKKjIPVRAtivcWhALy3lpclGIiHHZo0Ya4u2hcIV+3+1yfaeqrBBnIxtzQ6A== + + + + \ No newline at end of file From 0b81859f6b825f19ef49c434a1165c9634675503 Mon Sep 17 00:00:00 2001 From: liuzl Date: Sat, 3 Feb 2024 10:24:17 +0800 Subject: [PATCH 3/5] 1 --- Waste.Application/Waste.Application.xml | 7068 ++++++++--------- Waste.Core/Waste.Core.xml | 16 +- Waste.Web.Core/Waste.Web.Core.xml | 250 +- ...y-c2bee2c8-4c80-40e0-802c-5f5a51ff95d1.xml | 16 + 4 files changed, 3683 insertions(+), 3667 deletions(-) create mode 100644 Waste.Web.Entry/DataProtection/key-c2bee2c8-4c80-40e0-802c-5f5a51ff95d1.xml diff --git a/Waste.Application/Waste.Application.xml b/Waste.Application/Waste.Application.xml index 28d2ba2..9ef9b59 100644 --- a/Waste.Application/Waste.Application.xml +++ b/Waste.Application/Waste.Application.xml @@ -1,3534 +1,3534 @@ - - - - Waste.Application - - - - - 账户接口 - - - - - 用户登录 - - - - - 检查权限 - - - - - - - 生成token - - - - - - 用户登录 - - - - - 用户名 - - - - - 密码 - - - - - 验证码 - - - - - 账户登录成功之后的信息 - - - - - 账户类型 - - - - - 用户ID - - - - - 用户实际名称 - - - - - 角色ID - - - - - 是否为超级管理员 - - - - - 关联的商户ID - - - - - 登录成功之后的返回信息 - - - - - 访问token - - - - - 刷新token - - - - - 权限管理 - - - - - 生成token - - - - - - 检查token - - - - - - 删除 - - - - - - - 详情 - - - - - - - 授权列表 - - - - - - - 信息提交 - - - - - - - 检查是否在IP白名单中 - - - - - - - - 根据商户ID获取详情 - - - - - - 增加推送消息 - - - - - - - 商户管理 - - - - - 商户列表 - - - - - - - 商户列表,不包含管理员 - - - - - - - 信息提交 - - - - - - - 重置密码 - - - - - - - - 修改密码 - - - - - - - 退出登录 - - - - - - 授权列表 - - - - - - - 授权信息提交 - - - - - - - 删除授权 - - - - - - - 商户管理 - - - - - 删除商户 - - - - - - - 详情 - - - - - - - 获取所有商户 - - - - - - 商户列表 - - - 是否包含管理员,true-不包含,false-包含 - - - - - 重置密码 - - - - - - - - 修改密码 - - - - - - - 信息提交 - - - - - - - 生成用户code - - 当前用户的code - 名下用户数量 - - - - - 更新或者插入实时数据 - - - - - - 更新或者插入指定商户实时数据 - - - - - - 更新或者插入指定商户实时数据 - - - - - - 获取账户统计信息 - - - - - - 获取商户的昨天汇总信息 - - - - - - 密码 - - - - - 账户类型 - - - - - 修改密码 - - - - - 旧密码 - - - - - 新密码 - - - - - 确认新密码 - - - - - 商户列表 - - - - - 子商户数量 - - - - - 设备数量 - - - - - 今日活跃设备台数 - - - - - 今日测量数 - - - - - 今日重量 - - - - - 今日净重 - - - - - 累计测量数 - - - - - 累计重量 - - - - - 累计净重 - - - - - 商户汇总信息 - - - - - 名下商户数量,包含所有级 - - - - - 名下设备数量,包含所有级 - - - - - 昨日测量次数 - - - - - 昨日测量毛重 - - - - - 昨日测量净重 - - - - - 商户授权信息 - - - - - 商户名称 - - - - - 第三方推送的消息体内容 - - - - - 商户授权处理 - - - - - 授权列表 - - - - - - - 信息提交 - - - - - - - 删除 - - - - - - - 详情 - - - - - - - 获取推送列表 - - - - - - 检查是否在IP白名单中 - - - - - - - - 增加推送消息 - - - - - - - 重置密码 - - - - - - - - 修改密码 - - - - - - - 更新或者插入实时数据 - - - - - - 更新或者插入指定商户实时数据 - - - - - - 更新或者插入指定商户实时数据 - - - - - - 获取账户统计信息 - - - - - - 获取商户的昨天汇总信息 - - - - - - 设备接口 - - - - - 设备列表 - - - - - - - 信息提交 - - - - - - - 批量操作 - - - - - - - 设备状态修改 - - 设备ID - 设备状态,0-停用,1-正常,2-激活 - - - - - 配置设备推送信息 - - - - - - - 批量配置千灯镇商户推送 - - - - - - 设备管理 - - - - - 设备批量操作 - - - - - - - 详情 - - - - - - - 设备详情数据 - - - - - - - 获取设备配置详情 - - 设备ID - - - - - 设备列表 - - - - - - - 配置设备推送信息 - - - - - - - 批量配置千灯镇商户推送 - - - - - - 设备状态修改 - - 设备ID - 设备状态,0-停用,1-正常,2-激活 - - - - - 信息提交 - - - - - - - 商户名称 - - - - - ICCID - - - - - IMEI - - - - - IMSI - - - - - 今日测量次数 - - - - - 累计测量次数 - - - - - 今日测量重量 - - - - - 累计测量重量 - - - - - 最近心跳时间 - - - - - 网络状态,0-离线,1-在线,规则:最新测量时间、最近心跳时间在16分钟之内则是在线 - - - - - 信号强度,分为5格信号,算法为:31/6 - - - - - 经度 - - - - - 纬度 - - - - - 设备批量操作 - - - - - 服务商ID - - - - - 操作类型,1-分配,2-回收 - - - - - 设备ID列表 - - - - - 设备信息提交 - - - - - 设备对应的SecretHash - - - - - 设备对应的DevId - - - - - 设备对应的Secret - - - - - 设备详情 - - - - - 最近心跳时间 - - - - - 最近开机时间 - - - - - 纬度 - - - - - 经度 - - - - - 使用的版本号 - - - - - 设备配置 - - - - - 设备ID - - - - - 推送地址,支持http/https - - - - - 额外推送信息,推送时固定以body参数传递 - - - - - 验证 - - - - - - - 设备管理 - - - - - 设备列表 - - - - - - - 设备信息提交 - - - - - - - 详情 - - - - - - - 设备批量操作 - - - - - - - 设备详情数据 - - - - - - - 设备状态修改 - - 设备ID - 设备状态,0-停用,1-正常,2-激活 - - - - - 配置设备推送信息 - - - - - - - 批量配置千灯镇商户推送 - - - - - - 获取设备配置详情 - - 设备ID - - - - - 定时任务 - - - - - 每隔 5s 执行 - - - - - - - 全局异常处理提供器 - - - - - - - 日志处理 - - - - - 日志处理 - - - - - 添加日志 - - - - - - - - - 添加日志 - - - - - - - 对接平台接口测试 - - - - - Hello接口GET测试 - - - - - - - Hello接口POST测试 - - - - - - - 分页查询当前账号下存在的地产区域数据 - - - - - - - - - 添加地产区域信息 - - - - - - - 查询地产区域信息 - - - - - - - 向服务端推送测试用垃圾采集数据 - - - - - - - 设备ID - - - - - 页码 - - - - - 总页数 - - - - - 总条数 - - - - - 添加地产区域信息 - - - - - 地产区域编码,不可重复, 长度限制2到32 - - - - - 名称,长度限制2到32 - - - - - 地址,长度限制4到128 - - - - - 城市编码 ,例:320500000000(苏州) - - - - - 区域编码 ,例:320507000000(相城) - - - - - 街道编码,例:320507105000(渭塘镇) - - - - - 添加地产区域返回信息 - - - - - 地产区域ID - - - - - 地产区域编码 - - - - - 地产区域所在地址 - - - - - 城市编码 - - - - - 区域编码 - - - - - 街道编码 - - - - - 添加采集点信息 - - - - - 编码,不可重复, 长度限制2到32 - - - - - 名称,长度限制2到32 - - - - - 地址,长度限制4到128 - - - - - 地产区域ID - - - - - 添加采集点返回信息 - - - - - 采集点ID - - - - - 编码 - - - - - 名称 - - - - - 地址 - - - - - 后台推送数据 - - - - - 设备ID - - - - - secret - - - - - secrethash - - - - - 向服务端推送测试用垃圾采集数据 - - - - - 垃圾称重数据,64位浮点进度,单位为千克 - - - - - 垃圾桶编码 - - - - - 垃圾类型,缺省类型 : 0,厨余垃圾 : 1,可回收物 : 2,有害垃圾 : 3,其他垃圾 : 4 - - - - - 数据扫描时间,UNIX时间戳 - - - - - 设备状态,使用中 : 0:使用中,异常 : 1,检修 : 2,检修结束 : 3,启用 : 4,未知 : 5 - - - - - Hello测试 - - - - - Hello测试返回 - - - - - 苏州设备对接平台 - - - - - Hello接口GET测试 - - - - - - - Hello接口Post测试 - - - - - - - 分页查询当前账号下存在的地产区域数据 - - - - - - - - - 添加地产区域信息 - - - - - - - 查询地产区域信息 - - - - - - - 向服务端推送测试用垃圾采集数据 - - - - - - - 向服务端推送测试用垃圾采集数据 - - - - - - - 删除地产区域 - - - - - - - 删除采集点 - - - - - - - 添加采集点 - - - - - - - 获取时间戳 - - - - - - 获取随机数 - - - - - - 获取UTC时间戳 - - - - - - 获取签名 - - - - - - - - 苏州设备对接平台 - - - - - 分页查询当前账号下存在的地产区域数据 - - - - - - - - - 查询地产区域信息 - - - - - - - Hello接口GET测试 - - - - - - - 添加地产区域信息 - - - - - - - 向服务端推送测试用垃圾采集数据 - - - - - - - Hello接口Post测试 - - - - - - - 获取时间戳 - - - - - - 获取UTC时间戳 - - - - - - 获取随机数 - - - - - - 获取签名 - - - - - - - - POST封装接口 - - 地址 - 1-返回参数为msgpack,2-返回参数为text - post的数据 - 加密参数 - - - - - GET接口封装 - - 地址 - 1-返回参数为msgpack,2-返回参数为text - 加密参数 - - - - - Delete接口封装 - - 地址 - 1-返回参数为msgpack,2-返回参数为text - 加密参数 - - - - - 删除地产区域 - - - - - - - 删除采集点 - - - - - - - 添加采集点 - - - - - - - 上传数据 - - - - - - - 统计列表 - - - - - 商户名称 - - - - - 设备名称 - - - - - 设备地址 - - - - - 设备编号 - - - - - 合计测量次数 - - - - - 合计测量净重 - - - - - 合计测量重量 - - - - - 总条数 - - - - - 点位地址,包含省市区县详细地址 - - - - - 设备唯一编号 - - - - - 设备名称 - - - - - 总毛重,精确到小数点后两位,单位为KG - - - - - 总净重,精确到小数点后两位,单位为KG - - - - - 垃圾类型 - - - - - 统计时间,时间格式 - - - - - 点位地址,包含省市区县详细地址 - - - - - 设备唯一编号 - - - - - 设备名称 - - - - - 获取统计结果请求数据 - - - - - 开始时间 - - - - - 结束时间 - - - - - 统计信息 - - - - - 统计列表 - - - - - - - 根据商户和垃圾类型进行汇总 - - - - - - - 获取一定时间段内的统计数据,第三方接口对接使用 - - - 第三方授权的appid - - - - - 统计报表 - - - - - 统计列表 - - - - - - - 根据商户和垃圾类型进行汇总 - - - - - - - 获取一定时间段内的统计数据,第三方接口对接使用 - - - - - - - - 统计管理 - - - - - 获取一定时间段内的统计数据,第三方接口对接使用 - - - 第三方授权的appid - - - - - 统计列表 - - - - - - - 根据商户和垃圾类型进行汇总 - - - - - - - 投放记录列表 - - - - - 垃圾类别 - - - - - 物品小类别 - - - - - 重量,单位KG - - - - - 垃圾桶编号 - - - - - 上报时间 - - - - - 投放记录列表 - - - - - 上报时间 - - - - - 测量记录ID - - - - - 毛重 - - - - - 查询投放记录 - - - - - 当前页 - - - - - 每页显示的数量 - - - - - 开始时间 - - - - - 结束时间 - - - - - 设备ID - - - - - 商户名称 - - - - - 设备名称 - - - - - 设备地址 - - - - - 设备出厂序列号 - - - - - 设备编号 - - - - - 上报是否成功,1-成功,0-失败 - - - - - 上传的数据包体 - - - - - 固定头 - - - - - 数据体长度 - - - - - IMEI - - - - - ICCID - - - - - IMSI - - - - - 信号强度 - - - - - 时间 - - - - - 经度 - - - - - 纬度 - - - - - 设备地区 - - - - - 设备详细地点 - - - - - 垃圾类别 - - - - - 重量,KG - - - - - 内容 - - - - - 字符串结果 - - - - - 是否是否通过校检,true-是,false-否 - - - - - 是否为心跳包数据 - - - - - 是否为有效测量 - - - - - A8协议包内容 - - - - - 垃圾类别小类 - - - - - 消息ID - - - - - 上报时间 - - - - - 价格 - - - - - 金额 - - - - - 操作员 - - - - - A8协议模块上传的数据包体 - - - - - 固定头 - - - - - 数据体长度 - - - - - IMEI - - - - - ICCID - - - - - IMSI - - - - - 信号强度 - - - - - 时间 - - - - - 经度 - - - - - 纬度 - - - - - 桶大小 - - - - - 垃圾桶编号 - - - - - 垃圾类别 - - - - - 重量,KG - - - - - 内容 - - - - - 字符串结果 - - - - - 是否是否通过校检,true-是,false-否 - - - - - 是否为心跳包数据 - - - - - 是否为有效测量 - - - - - 新的4G模块上传的数据包体 - - - - - 固定头 - - - - - 数据体长度 - - - - - IMEI - - - - - ICCID - - - - - IMSI - - - - - 信号强度 - - - - - 时间 - - - - - 经度 - - - - - 纬度 - - - - - 桶大小 - - - - - 垃圾桶编号 - - - - - 垃圾类别 - - - - - 重量,KG - - - - - 内容 - - - - - 字符串结果 - - - - - 是否是否通过校检,true-是,false-否 - - - - - 是否为心跳包数据 - - - - - 是否为有效测量 - - - - - wifi模块上传的数据包体 - - - - - 设备机器码 - - - - - 桶大小 - - - - - 垃圾桶编号 - - - - - 垃圾类别 - - - - - 重量,KG - - - - - 是否为心跳包 - - - - - 投放记录 - - - - - 垃圾分类列表 - - - - - - - 添加记录 - - - - - - - 新的4G模块测量结果增加 - - - - - - - 新的A8 4G模块测量结果增加 - - - - - - - wifi模块测量结果增加 - - - - - - - 查询历史投放记录 - - - - - - - 给第三方推送消息 - - - - - - - 投放记录 - - - - - 投放记录列表 - - - - - - - 添加记录 - - - - - - - wifi模块测量结果增加 - - - - - - - 查询历史投放记录 - - - - - - - 投放记录管理 - - - - - 获取投放记录 - - - - - - - 查询历史投放记录 - - - - - - - wifi模块测量结果增加 - - - - - - - 新的4G模块测量结果增加 - - - - - - - 新的A8 4G模块测量结果增加 - - - - - - - 给第三方推送消息 - - - - - - - 增加测量记录 - - - - - - - byte转int - - - - - - - 角色信息提交 - - - - - 菜单列表 - - - - - 账户管理 - - - - - 账户管理 - - - - - 删除角色 - - - - - - - 角色详情 - - - - - - - 角色列表 - - - - - - - 信息提交 - - - - - - - 测量记录 - - - - - 设备ID - - - - - 最近使用时间 - - - - - 记录ID - - - - - 设备服务商ID - - - - - 设备的IMEI - - - - - ICCID - - - - - IMSI - - - - - 纬度 - - - - - 经度 - - - - - 信号强度 - - - - - 垃圾类型 - - - - - 垃圾桶编号 - - - - - 毛重 - - - - - 皮重 - - - - - 设备版本信息 - - - - - 设备机器码 - - - - - 版本号 - - - - - 发送第三方消息 - - - - - 设备ID - - - - - 垃圾类别 - - - - - 物品小类别 - - - - - 重量,单位KG - - - - - 垃圾桶编号 - s - - - - 上报时间 - - - - - 发送第三方消息 - - - - - 推送地址 - - - - - 推送给第三方的信息 - - - - - 垃圾类别 - - - - - 物品小类别 - - - - - 重量,单位KG - - - - - 垃圾桶编号 - - - - - 上报时间 - - - - - 额外信息 - - - - - 设备ID - - - - - CAP订阅相关接口 - - - - - 添加记录 - - - - - - - 更新记录上报结果 - - - - - - - 更新设备开机信息 - - - - - - - 心跳数据上报 - - - - - - - 更新设备版本信息 - - - - - - - 4G模块传输的数据增加测量记录 - - - - - - - A8 4G模块传输的数据增加测量记录 - - - - - - - 测试,4G模块传输的数据增加测量记录 - - - - - - - 第三方推送设备消息 - - - - - - - CAP订阅相关接口 - - - - - 添加记录 - - - - - - - 更新记录上报结果 - - - - - - - 心跳数据上报 - - - - - - - 更新设备开机信息 - - - - - - - 更新设备版本信息 - - - - - - - 4G模块传输的数据增加测量记录 - - - - - - - 测试,4G模块传输的数据增加测量记录 - - - - - - - 第三方推送设备消息 - - - - - - - A8 4G模块传输的数据增加测量记录 - - - - - - - 地址列表 - - - - - 获取城市列表 - - 国标码 - 级别 - - - - - 获取城市列表 - - - - - - 系统管理 - - - - - 删除菜单 - - - - - - - 获取菜单详情 - - - - - - - 获取菜单列表 - - - - - - - 获取菜单列表 - - - - - - 菜单编辑 - - - - - - - 获取菜单树形结构 - - - - - - 获取城市列表 - - 国标码 - 级别 - - - - - 获取城市列表 - - - - - - 地产区域名称 - - - - - 苏州设备接入平台管理 - - - - - 获取地产区域列表 - - - - - - - 获取地产区域所有列表 - - - - - - 地产区域信息提交 - - - - - - - 地产区域详情 - - - - - - - 删除地产区域 - - - - - - - 获取采集点列表 - - - - - - - 采集点信息提交 - - - - - - - 采集点详情 - - - - - - - 删除采集点 - - - - - - - 获取地产区域列表 - - - - - - - 地产区域信息提交 - - - - - - - 删除地产区域 - - - - - - - 获取采集点列表 - - - - - - - 采集点信息提交 - - - - - - - 删除采集点 - - - - - - - 苏州设备接入平台管理 - - - - - 删除地产区域 - - - - - - - 删除采集点 - - - - - - - 地产区域详情 - - - - - - - 采集点详情 - - - - - - - 获取地产区域所有列表 - - - - - - 获取地产区域列表 - - - - - - - 获取采集点列表 - - - - - - - 地产区域信息提交 - - - - - - - 采集点信息提交 - - - - - - - 测试专用 - - - - - 接收测试 - - - - - - - - - - - - - 心跳包上报数据 - - - - - 机器码 - - - - - IMEI - - - - - ICCID - - - - - IMSI - - - - - 信号强度 - - - - - 纬度 - - - - - 经度 - - - - - 注册注册信息返回值 - - - - - 设备状态,0-使用中,1-异常,2-检修,3-检修结束,4-启用,5-未知 - - - - - 波特率 - - - - - 串口号 - - - - - websocket地址 - - - - - 时间戳 - - - - - 随机数 - - - - - 用户ID - - - - - secret - - - - - secrethash - - - - - 设备ID - - - - - 更新上报结果 - - - - - 记录ID - - - - - 机器码 - - - - - 上报状态,1-成功,0-失败 - - - - - 获取设备信息请求数据,并上报数据 - - - - - 记录ID - - - - - 串口数据 - - - - - 获取设备信息响应数据 - - - - - 解析数据是否正常 - - - - - 时间戳 - - - - - 随机数 - - - - - 用户ID - - - - - secret - - - - - secrethash - - - - - 设备ID - - - - - 上报地址 - - - - - 垃圾桶编号 - - - - - 垃圾类型 - - - - - 体重 - - - - - 设备状态,0-使用中,1-异常,2-检修,3-检修结束,4-启用,5-未知 - - - - - 数据扫描时间,UNIX时间戳 - - - - - 签名 - - - - - 记录ID - - - - - 日志上报 - - - - - 机器码 - - - - - 位置 - - - - - 错误信息 - - - - - wifi模块发送的数据 - - - - - 参数,包含sn和测量数据 - - - - - wifi模块发送的数据解析 - - - - - 设备机器码 - - - - - 包头,固定为A9 - - - - - 分隔符,固定为00 - - - - - 解密出的16进制数据 - - - - - 数据是否验证通过 - - - - - 是否为心跳包 - - - - - 结果集 - - - - - 消息发送 - - - - - 设备ID - - - - - 垃圾类别 - - - - - 重量,单位KG - - - - - 垃圾桶编号 - - - - - 上报时间 - - - - - app端返回的信息 - - - - - 信息 - - - - - app端返回的通用信息 - - - - - 错误代码 - - - - - 名称 - - - - - 错误信息 - - - - - app端版本信息返回值 - - - - - 版本号 - - - - - 版本说明 - - - - - 下载地址 - - - - - 设备对接接口 - - - - - 获取上报相关信息 - - - - - - - 心跳数据上报 - - - - - - - 获取设备注册信息 - - - - - - - 更新上报状态 - - - - - - - 更新设备版本信息 - - - - - - - 通过ailink wifi模式发送的数据 - - - - - - - 开放数据 - - - - - 获取设备上报相关信息 - - - - - - - 心跳数据上报 - - - - - - - 获取设备注册信息,第一次开机使用 - - - - - - - 更新上报状态 - - - - - - - BUG上报 - - - - - - BUG上报 - - - - - - 正式升级 - - 机器码 - 版本号 - 类型 - - - - - 获取机器到期时间 - - - - - - - 通过ailink wifi模式发送的数据 - - - - - - - 设备对接接口 - - - - - 更新上报状态 - - - - - - - 获取设备上报相关信息 - - - - - - - 16进制转10进制 - - - - - - - 心跳数据上报 - - - - - - - 获取设备注册信息,第一次开机使用 - - - - - - - 更新设备版本信息 - - - - - - - 通过ailink wifi模式发送的数据 - - - - - - - 16进制转汉字 - - - - - - - 字节数组转16进制 - - - - - - - wifi数据解析 - - - - - - - 字节转16进制 - - - - - - - 垃圾分类列表 - - - - - - - 垃圾分类信息提交 - - - - - - - 删除分类 - - - - - - - 分类详情 - - - - - - - 获取所有分类 - - - - - - 垃圾分类信息接口 - - - - - 删除分类 - - - - - - - 分类详情 - - - - - - - 获取所有分类 - - - - - - 垃圾分类列表 - - - - - - - 垃圾分类信息提交 - - - - - - - 垃圾信息管理 - - - - - 删除分类 - - - - - - - 分类详情 - - - - - - - 获取所有分类 - - - - - - 垃圾分类列表 - - - - - - - 垃圾分类信息提交 - - - - - - + + + + Waste.Application + + + + + 账户接口 + + + + + 用户登录 + + + + + 检查权限 + + + + + + + 生成token + + + + + + 用户登录 + + + + + 用户名 + + + + + 密码 + + + + + 验证码 + + + + + 账户登录成功之后的信息 + + + + + 账户类型 + + + + + 用户ID + + + + + 用户实际名称 + + + + + 角色ID + + + + + 是否为超级管理员 + + + + + 关联的商户ID + + + + + 登录成功之后的返回信息 + + + + + 访问token + + + + + 刷新token + + + + + 权限管理 + + + + + 生成token + + + + + + 检查token + + + + + + 删除 + + + + + + + 详情 + + + + + + + 授权列表 + + + + + + + 信息提交 + + + + + + + 检查是否在IP白名单中 + + + + + + + + 根据商户ID获取详情 + + + + + + 增加推送消息 + + + + + + + 商户管理 + + + + + 商户列表 + + + + + + + 商户列表,不包含管理员 + + + + + + + 信息提交 + + + + + + + 重置密码 + + + + + + + + 修改密码 + + + + + + + 退出登录 + + + + + + 授权列表 + + + + + + + 授权信息提交 + + + + + + + 删除授权 + + + + + + + 商户管理 + + + + + 删除商户 + + + + + + + 详情 + + + + + + + 获取所有商户 + + + + + + 商户列表 + + + 是否包含管理员,true-不包含,false-包含 + + + + + 重置密码 + + + + + + + + 修改密码 + + + + + + + 信息提交 + + + + + + + 生成用户code + + 当前用户的code + 名下用户数量 + + + + + 更新或者插入实时数据 + + + + + + 更新或者插入指定商户实时数据 + + + + + + 更新或者插入指定商户实时数据 + + + + + + 获取账户统计信息 + + + + + + 获取商户的昨天汇总信息 + + + + + + 密码 + + + + + 账户类型 + + + + + 修改密码 + + + + + 旧密码 + + + + + 新密码 + + + + + 确认新密码 + + + + + 商户列表 + + + + + 子商户数量 + + + + + 设备数量 + + + + + 今日活跃设备台数 + + + + + 今日测量数 + + + + + 今日重量 + + + + + 今日净重 + + + + + 累计测量数 + + + + + 累计重量 + + + + + 累计净重 + + + + + 商户汇总信息 + + + + + 名下商户数量,包含所有级 + + + + + 名下设备数量,包含所有级 + + + + + 昨日测量次数 + + + + + 昨日测量毛重 + + + + + 昨日测量净重 + + + + + 商户授权信息 + + + + + 商户名称 + + + + + 第三方推送的消息体内容 + + + + + 商户授权处理 + + + + + 授权列表 + + + + + + + 信息提交 + + + + + + + 删除 + + + + + + + 详情 + + + + + + + 获取推送列表 + + + + + + 检查是否在IP白名单中 + + + + + + + + 增加推送消息 + + + + + + + 重置密码 + + + + + + + + 修改密码 + + + + + + + 更新或者插入实时数据 + + + + + + 更新或者插入指定商户实时数据 + + + + + + 更新或者插入指定商户实时数据 + + + + + + 获取账户统计信息 + + + + + + 获取商户的昨天汇总信息 + + + + + + 设备接口 + + + + + 设备列表 + + + + + + + 信息提交 + + + + + + + 批量操作 + + + + + + + 设备状态修改 + + 设备ID + 设备状态,0-停用,1-正常,2-激活 + + + + + 配置设备推送信息 + + + + + + + 批量配置千灯镇商户推送 + + + + + + 设备管理 + + + + + 设备批量操作 + + + + + + + 详情 + + + + + + + 设备详情数据 + + + + + + + 获取设备配置详情 + + 设备ID + + + + + 设备列表 + + + + + + + 配置设备推送信息 + + + + + + + 批量配置千灯镇商户推送 + + + + + + 设备状态修改 + + 设备ID + 设备状态,0-停用,1-正常,2-激活 + + + + + 信息提交 + + + + + + + 商户名称 + + + + + ICCID + + + + + IMEI + + + + + IMSI + + + + + 今日测量次数 + + + + + 累计测量次数 + + + + + 今日测量重量 + + + + + 累计测量重量 + + + + + 最近心跳时间 + + + + + 网络状态,0-离线,1-在线,规则:最新测量时间、最近心跳时间在16分钟之内则是在线 + + + + + 信号强度,分为5格信号,算法为:31/6 + + + + + 经度 + + + + + 纬度 + + + + + 设备批量操作 + + + + + 服务商ID + + + + + 操作类型,1-分配,2-回收 + + + + + 设备ID列表 + + + + + 设备信息提交 + + + + + 设备对应的SecretHash + + + + + 设备对应的DevId + + + + + 设备对应的Secret + + + + + 设备详情 + + + + + 最近心跳时间 + + + + + 最近开机时间 + + + + + 纬度 + + + + + 经度 + + + + + 使用的版本号 + + + + + 设备配置 + + + + + 设备ID + + + + + 推送地址,支持http/https + + + + + 额外推送信息,推送时固定以body参数传递 + + + + + 验证 + + + + + + + 设备管理 + + + + + 设备列表 + + + + + + + 设备信息提交 + + + + + + + 详情 + + + + + + + 设备批量操作 + + + + + + + 设备详情数据 + + + + + + + 设备状态修改 + + 设备ID + 设备状态,0-停用,1-正常,2-激活 + + + + + 配置设备推送信息 + + + + + + + 批量配置千灯镇商户推送 + + + + + + 获取设备配置详情 + + 设备ID + + + + + 定时任务 + + + + + 每隔 5s 执行 + + + + + + + 全局异常处理提供器 + + + + + + + 日志处理 + + + + + 日志处理 + + + + + 添加日志 + + + + + + + + + 添加日志 + + + + + + + 对接平台接口测试 + + + + + Hello接口GET测试 + + + + + + + Hello接口POST测试 + + + + + + + 分页查询当前账号下存在的地产区域数据 + + + + + + + + + 添加地产区域信息 + + + + + + + 查询地产区域信息 + + + + + + + 向服务端推送测试用垃圾采集数据 + + + + + + + 设备ID + + + + + 页码 + + + + + 总页数 + + + + + 总条数 + + + + + 添加地产区域信息 + + + + + 地产区域编码,不可重复, 长度限制2到32 + + + + + 名称,长度限制2到32 + + + + + 地址,长度限制4到128 + + + + + 城市编码 ,例:320500000000(苏州) + + + + + 区域编码 ,例:320507000000(相城) + + + + + 街道编码,例:320507105000(渭塘镇) + + + + + 添加地产区域返回信息 + + + + + 地产区域ID + + + + + 地产区域编码 + + + + + 地产区域所在地址 + + + + + 城市编码 + + + + + 区域编码 + + + + + 街道编码 + + + + + 添加采集点信息 + + + + + 编码,不可重复, 长度限制2到32 + + + + + 名称,长度限制2到32 + + + + + 地址,长度限制4到128 + + + + + 地产区域ID + + + + + 添加采集点返回信息 + + + + + 采集点ID + + + + + 编码 + + + + + 名称 + + + + + 地址 + + + + + 后台推送数据 + + + + + 设备ID + + + + + secret + + + + + secrethash + + + + + 向服务端推送测试用垃圾采集数据 + + + + + 垃圾称重数据,64位浮点进度,单位为千克 + + + + + 垃圾桶编码 + + + + + 垃圾类型,缺省类型 : 0,厨余垃圾 : 1,可回收物 : 2,有害垃圾 : 3,其他垃圾 : 4 + + + + + 数据扫描时间,UNIX时间戳 + + + + + 设备状态,使用中 : 0:使用中,异常 : 1,检修 : 2,检修结束 : 3,启用 : 4,未知 : 5 + + + + + Hello测试 + + + + + Hello测试返回 + + + + + 苏州设备对接平台 + + + + + Hello接口GET测试 + + + + + + + Hello接口Post测试 + + + + + + + 分页查询当前账号下存在的地产区域数据 + + + + + + + + + 添加地产区域信息 + + + + + + + 查询地产区域信息 + + + + + + + 向服务端推送测试用垃圾采集数据 + + + + + + + 向服务端推送测试用垃圾采集数据 + + + + + + + 删除地产区域 + + + + + + + 删除采集点 + + + + + + + 添加采集点 + + + + + + + 获取时间戳 + + + + + + 获取随机数 + + + + + + 获取UTC时间戳 + + + + + + 获取签名 + + + + + + + + 苏州设备对接平台 + + + + + 分页查询当前账号下存在的地产区域数据 + + + + + + + + + 查询地产区域信息 + + + + + + + Hello接口GET测试 + + + + + + + 添加地产区域信息 + + + + + + + 向服务端推送测试用垃圾采集数据 + + + + + + + Hello接口Post测试 + + + + + + + 获取时间戳 + + + + + + 获取UTC时间戳 + + + + + + 获取随机数 + + + + + + 获取签名 + + + + + + + + POST封装接口 + + 地址 + 1-返回参数为msgpack,2-返回参数为text + post的数据 + 加密参数 + + + + + GET接口封装 + + 地址 + 1-返回参数为msgpack,2-返回参数为text + 加密参数 + + + + + Delete接口封装 + + 地址 + 1-返回参数为msgpack,2-返回参数为text + 加密参数 + + + + + 删除地产区域 + + + + + + + 删除采集点 + + + + + + + 添加采集点 + + + + + + + 上传数据 + + + + + + + 统计列表 + + + + + 商户名称 + + + + + 设备名称 + + + + + 设备地址 + + + + + 设备编号 + + + + + 合计测量次数 + + + + + 合计测量净重 + + + + + 合计测量重量 + + + + + 总条数 + + + + + 点位地址,包含省市区县详细地址 + + + + + 设备唯一编号 + + + + + 设备名称 + + + + + 总毛重,精确到小数点后两位,单位为KG + + + + + 总净重,精确到小数点后两位,单位为KG + + + + + 垃圾类型 + + + + + 统计时间,时间格式 + + + + + 点位地址,包含省市区县详细地址 + + + + + 设备唯一编号 + + + + + 设备名称 + + + + + 获取统计结果请求数据 + + + + + 开始时间 + + + + + 结束时间 + + + + + 统计信息 + + + + + 统计列表 + + + + + + + 根据商户和垃圾类型进行汇总 + + + + + + + 获取一定时间段内的统计数据,第三方接口对接使用 + + + 第三方授权的appid + + + + + 统计报表 + + + + + 统计列表 + + + + + + + 根据商户和垃圾类型进行汇总 + + + + + + + 获取一定时间段内的统计数据,第三方接口对接使用 + + + + + + + + 统计管理 + + + + + 获取一定时间段内的统计数据,第三方接口对接使用 + + + 第三方授权的appid + + + + + 统计列表 + + + + + + + 根据商户和垃圾类型进行汇总 + + + + + + + 投放记录列表 + + + + + 垃圾类别 + + + + + 物品小类别 + + + + + 重量,单位KG + + + + + 垃圾桶编号 + + + + + 上报时间 + + + + + 投放记录列表 + + + + + 上报时间 + + + + + 测量记录ID + + + + + 毛重 + + + + + 查询投放记录 + + + + + 当前页 + + + + + 每页显示的数量 + + + + + 开始时间 + + + + + 结束时间 + + + + + 设备ID + + + + + 商户名称 + + + + + 设备名称 + + + + + 设备地址 + + + + + 设备出厂序列号 + + + + + 设备编号 + + + + + 上报是否成功,1-成功,0-失败 + + + + + 上传的数据包体 + + + + + 固定头 + + + + + 数据体长度 + + + + + IMEI + + + + + ICCID + + + + + IMSI + + + + + 信号强度 + + + + + 时间 + + + + + 经度 + + + + + 纬度 + + + + + 设备地区 + + + + + 设备详细地点 + + + + + 垃圾类别 + + + + + 重量,KG + + + + + 内容 + + + + + 字符串结果 + + + + + 是否是否通过校检,true-是,false-否 + + + + + 是否为心跳包数据 + + + + + 是否为有效测量 + + + + + A8协议包内容 + + + + + 垃圾类别小类 + + + + + 消息ID + + + + + 上报时间 + + + + + 价格 + + + + + 金额 + + + + + 操作员 + + + + + A8协议模块上传的数据包体 + + + + + 固定头 + + + + + 数据体长度 + + + + + IMEI + + + + + ICCID + + + + + IMSI + + + + + 信号强度 + + + + + 时间 + + + + + 经度 + + + + + 纬度 + + + + + 桶大小 + + + + + 垃圾桶编号 + + + + + 垃圾类别 + + + + + 重量,KG + + + + + 内容 + + + + + 字符串结果 + + + + + 是否是否通过校检,true-是,false-否 + + + + + 是否为心跳包数据 + + + + + 是否为有效测量 + + + + + 新的4G模块上传的数据包体 + + + + + 固定头 + + + + + 数据体长度 + + + + + IMEI + + + + + ICCID + + + + + IMSI + + + + + 信号强度 + + + + + 时间 + + + + + 经度 + + + + + 纬度 + + + + + 桶大小 + + + + + 垃圾桶编号 + + + + + 垃圾类别 + + + + + 重量,KG + + + + + 内容 + + + + + 字符串结果 + + + + + 是否是否通过校检,true-是,false-否 + + + + + 是否为心跳包数据 + + + + + 是否为有效测量 + + + + + wifi模块上传的数据包体 + + + + + 设备机器码 + + + + + 桶大小 + + + + + 垃圾桶编号 + + + + + 垃圾类别 + + + + + 重量,KG + + + + + 是否为心跳包 + + + + + 投放记录 + + + + + 垃圾分类列表 + + + + + + + 添加记录 + + + + + + + 新的4G模块测量结果增加 + + + + + + + 新的A8 4G模块测量结果增加 + + + + + + + wifi模块测量结果增加 + + + + + + + 查询历史投放记录 + + + + + + + 给第三方推送消息 + + + + + + + 投放记录 + + + + + 投放记录列表 + + + + + + + 添加记录 + + + + + + + wifi模块测量结果增加 + + + + + + + 查询历史投放记录 + + + + + + + 投放记录管理 + + + + + 获取投放记录 + + + + + + + 查询历史投放记录 + + + + + + + wifi模块测量结果增加 + + + + + + + 新的4G模块测量结果增加 + + + + + + + 新的A8 4G模块测量结果增加 + + + + + + + 给第三方推送消息 + + + + + + + 增加测量记录 + + + + + + + byte转int + + + + + + + 角色信息提交 + + + + + 菜单列表 + + + + + 账户管理 + + + + + 账户管理 + + + + + 删除角色 + + + + + + + 角色详情 + + + + + + + 角色列表 + + + + + + + 信息提交 + + + + + + + 测量记录 + + + + + 设备ID + + + + + 最近使用时间 + + + + + 记录ID + + + + + 设备服务商ID + + + + + 设备的IMEI + + + + + ICCID + + + + + IMSI + + + + + 纬度 + + + + + 经度 + + + + + 信号强度 + + + + + 垃圾类型 + + + + + 垃圾桶编号 + + + + + 毛重 + + + + + 皮重 + + + + + 设备版本信息 + + + + + 设备机器码 + + + + + 版本号 + + + + + 发送第三方消息 + + + + + 设备ID + + + + + 垃圾类别 + + + + + 物品小类别 + + + + + 重量,单位KG + + + + + 垃圾桶编号 + s + + + + 上报时间 + + + + + 发送第三方消息 + + + + + 推送地址 + + + + + 推送给第三方的信息 + + + + + 垃圾类别 + + + + + 物品小类别 + + + + + 重量,单位KG + + + + + 垃圾桶编号 + + + + + 上报时间 + + + + + 额外信息 + + + + + 设备ID + + + + + CAP订阅相关接口 + + + + + 添加记录 + + + + + + + 更新记录上报结果 + + + + + + + 更新设备开机信息 + + + + + + + 心跳数据上报 + + + + + + + 更新设备版本信息 + + + + + + + 4G模块传输的数据增加测量记录 + + + + + + + A8 4G模块传输的数据增加测量记录 + + + + + + + 测试,4G模块传输的数据增加测量记录 + + + + + + + 第三方推送设备消息 + + + + + + + CAP订阅相关接口 + + + + + 添加记录 + + + + + + + 更新记录上报结果 + + + + + + + 心跳数据上报 + + + + + + + 更新设备开机信息 + + + + + + + 更新设备版本信息 + + + + + + + 4G模块传输的数据增加测量记录 + + + + + + + 测试,4G模块传输的数据增加测量记录 + + + + + + + 第三方推送设备消息 + + + + + + + A8 4G模块传输的数据增加测量记录 + + + + + + + 地址列表 + + + + + 获取城市列表 + + 国标码 + 级别 + + + + + 获取城市列表 + + + + + + 系统管理 + + + + + 删除菜单 + + + + + + + 获取菜单详情 + + + + + + + 获取菜单列表 + + + + + + + 获取菜单列表 + + + + + + 菜单编辑 + + + + + + + 获取菜单树形结构 + + + + + + 获取城市列表 + + 国标码 + 级别 + + + + + 获取城市列表 + + + + + + 地产区域名称 + + + + + 苏州设备接入平台管理 + + + + + 获取地产区域列表 + + + + + + + 获取地产区域所有列表 + + + + + + 地产区域信息提交 + + + + + + + 地产区域详情 + + + + + + + 删除地产区域 + + + + + + + 获取采集点列表 + + + + + + + 采集点信息提交 + + + + + + + 采集点详情 + + + + + + + 删除采集点 + + + + + + + 获取地产区域列表 + + + + + + + 地产区域信息提交 + + + + + + + 删除地产区域 + + + + + + + 获取采集点列表 + + + + + + + 采集点信息提交 + + + + + + + 删除采集点 + + + + + + + 苏州设备接入平台管理 + + + + + 删除地产区域 + + + + + + + 删除采集点 + + + + + + + 地产区域详情 + + + + + + + 采集点详情 + + + + + + + 获取地产区域所有列表 + + + + + + 获取地产区域列表 + + + + + + + 获取采集点列表 + + + + + + + 地产区域信息提交 + + + + + + + 采集点信息提交 + + + + + + + 测试专用 + + + + + 接收测试 + + + + + + + + + + + + + 心跳包上报数据 + + + + + 机器码 + + + + + IMEI + + + + + ICCID + + + + + IMSI + + + + + 信号强度 + + + + + 纬度 + + + + + 经度 + + + + + 注册注册信息返回值 + + + + + 设备状态,0-使用中,1-异常,2-检修,3-检修结束,4-启用,5-未知 + + + + + 波特率 + + + + + 串口号 + + + + + websocket地址 + + + + + 时间戳 + + + + + 随机数 + + + + + 用户ID + + + + + secret + + + + + secrethash + + + + + 设备ID + + + + + 更新上报结果 + + + + + 记录ID + + + + + 机器码 + + + + + 上报状态,1-成功,0-失败 + + + + + 获取设备信息请求数据,并上报数据 + + + + + 记录ID + + + + + 串口数据 + + + + + 获取设备信息响应数据 + + + + + 解析数据是否正常 + + + + + 时间戳 + + + + + 随机数 + + + + + 用户ID + + + + + secret + + + + + secrethash + + + + + 设备ID + + + + + 上报地址 + + + + + 垃圾桶编号 + + + + + 垃圾类型 + + + + + 体重 + + + + + 设备状态,0-使用中,1-异常,2-检修,3-检修结束,4-启用,5-未知 + + + + + 数据扫描时间,UNIX时间戳 + + + + + 签名 + + + + + 记录ID + + + + + 日志上报 + + + + + 机器码 + + + + + 位置 + + + + + 错误信息 + + + + + wifi模块发送的数据 + + + + + 参数,包含sn和测量数据 + + + + + wifi模块发送的数据解析 + + + + + 设备机器码 + + + + + 包头,固定为A9 + + + + + 分隔符,固定为00 + + + + + 解密出的16进制数据 + + + + + 数据是否验证通过 + + + + + 是否为心跳包 + + + + + 结果集 + + + + + 消息发送 + + + + + 设备ID + + + + + 垃圾类别 + + + + + 重量,单位KG + + + + + 垃圾桶编号 + + + + + 上报时间 + + + + + app端返回的信息 + + + + + 信息 + + + + + app端返回的通用信息 + + + + + 错误代码 + + + + + 名称 + + + + + 错误信息 + + + + + app端版本信息返回值 + + + + + 版本号 + + + + + 版本说明 + + + + + 下载地址 + + + + + 设备对接接口 + + + + + 获取上报相关信息 + + + + + + + 心跳数据上报 + + + + + + + 获取设备注册信息 + + + + + + + 更新上报状态 + + + + + + + 更新设备版本信息 + + + + + + + 通过ailink wifi模式发送的数据 + + + + + + + 开放数据 + + + + + 获取设备上报相关信息 + + + + + + + 心跳数据上报 + + + + + + + 获取设备注册信息,第一次开机使用 + + + + + + + 更新上报状态 + + + + + + + BUG上报 + + + + + + BUG上报 + + + + + + 正式升级 + + 机器码 + 版本号 + 类型 + + + + + 获取机器到期时间 + + + + + + + 通过ailink wifi模式发送的数据 + + + + + + + 设备对接接口 + + + + + 更新上报状态 + + + + + + + 获取设备上报相关信息 + + + + + + + 16进制转10进制 + + + + + + + 心跳数据上报 + + + + + + + 获取设备注册信息,第一次开机使用 + + + + + + + 更新设备版本信息 + + + + + + + 通过ailink wifi模式发送的数据 + + + + + + + 16进制转汉字 + + + + + + + 字节数组转16进制 + + + + + + + wifi数据解析 + + + + + + + 字节转16进制 + + + + + + + 垃圾分类列表 + + + + + + + 垃圾分类信息提交 + + + + + + + 删除分类 + + + + + + + 分类详情 + + + + + + + 获取所有分类 + + + + + + 垃圾分类信息接口 + + + + + 删除分类 + + + + + + + 分类详情 + + + + + + + 获取所有分类 + + + + + + 垃圾分类列表 + + + + + + + 垃圾分类信息提交 + + + + + + + 垃圾信息管理 + + + + + 删除分类 + + + + + + + 分类详情 + + + + + + + 获取所有分类 + + + + + + 垃圾分类列表 + + + + + + + 垃圾分类信息提交 + + + + + + diff --git a/Waste.Core/Waste.Core.xml b/Waste.Core/Waste.Core.xml index d844f3b..0dde8c7 100644 --- a/Waste.Core/Waste.Core.xml +++ b/Waste.Core/Waste.Core.xml @@ -1,8 +1,8 @@ - - - - Waste.Core - - - - + + + + Waste.Core + + + + diff --git a/Waste.Web.Core/Waste.Web.Core.xml b/Waste.Web.Core/Waste.Web.Core.xml index a843d0b..9cc637e 100644 --- a/Waste.Web.Core/Waste.Web.Core.xml +++ b/Waste.Web.Core/Waste.Web.Core.xml @@ -1,125 +1,125 @@ - - - - Waste.Web.Core - - - - - long类型处理 - - - - - 对长整型做处理 - - - - - - - 创建属性 - - 类型 - 序列化成员 - - - - - 对null类型的处理 - - - - - 构造函数 - - - - - - 获取value - - - - - - - 设置value - - - - - - - 对于LONG类型的转换 - - - - - 判断是否为Long类型 - - 类型 - 为long类型则可以进行转换 - - - - 请求管道 - - - - - - - - 检查权限 - - - - - - - 自定义授权 - - - - - - - RESTFUL 风格返回值 - - - - - 异常返回值 - - - - - - - - 处理输出状态码 - - - - - - - - - 成功返回值 - - - - - - - - 验证失败返回值 - - - - - - - + + + + Waste.Web.Core + + + + + long类型处理 + + + + + 对长整型做处理 + + + + + + + 创建属性 + + 类型 + 序列化成员 + + + + + 对null类型的处理 + + + + + 构造函数 + + + + + + 获取value + + + + + + + 设置value + + + + + + + 对于LONG类型的转换 + + + + + 判断是否为Long类型 + + 类型 + 为long类型则可以进行转换 + + + + 请求管道 + + + + + + + + 检查权限 + + + + + + + 自定义授权 + + + + + + + RESTFUL 风格返回值 + + + + + 异常返回值 + + + + + + + + 处理输出状态码 + + + + + + + + + 成功返回值 + + + + + + + + 验证失败返回值 + + + + + + + diff --git a/Waste.Web.Entry/DataProtection/key-c2bee2c8-4c80-40e0-802c-5f5a51ff95d1.xml b/Waste.Web.Entry/DataProtection/key-c2bee2c8-4c80-40e0-802c-5f5a51ff95d1.xml new file mode 100644 index 0000000..d783a6a --- /dev/null +++ b/Waste.Web.Entry/DataProtection/key-c2bee2c8-4c80-40e0-802c-5f5a51ff95d1.xml @@ -0,0 +1,16 @@ + + + 2023-11-06T09:29:17.0142323Z + 2023-11-06T09:29:16.9516438Z + 2024-02-04T09:29:16.9516438Z + + + + + + + ObJzvr6B6Rz5ZFItThMbbfbTiGATKLJiwa31wlJkcgXomsyU+LEYb2Z5oFipInn7ufXzRnjJbUCj71yk+9PYUA== + + + + \ No newline at end of file From ed6268242ea8f8fe4621ae228b5719ee4ffe66f8 Mon Sep 17 00:00:00 2001 From: liuzl Date: Wed, 21 Feb 2024 14:03:10 +0800 Subject: [PATCH 4/5] =?UTF-8?q?=E7=BB=93=E6=9E=9C=E6=8E=A8=E9=80=81?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=AE=BE=E5=A4=87=E7=9B=B8=E5=85=B3=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ResultInfos/ResultService.cs | 32 ++++++++-- .../SubscribeInfo/Dtos/SubscribeDto.cs | 64 +++++++++++++++++-- Waste.Application/ThirdApiInfo/OpenService.cs | 8 ++- .../waste.ybhdmob.com.pubxml.user | 2 +- 4 files changed, 96 insertions(+), 10 deletions(-) diff --git a/Waste.Application/ResultInfos/ResultService.cs b/Waste.Application/ResultInfos/ResultService.cs index 3c1f278..b1ebcda 100644 --- a/Waste.Application/ResultInfos/ResultService.cs +++ b/Waste.Application/ResultInfos/ResultService.cs @@ -263,7 +263,13 @@ namespace Waste.Application Time = time, TrashCode = data.trashcode, WasteType = data.WasteType, - Weight = currentweight + Weight = currentweight, + faccode = device.FacEcode, + ecode = device.Ecode, + province = device.Province, + city = device.City, + area = device.Area, + address = device.Address }); } } @@ -338,7 +344,13 @@ namespace Waste.Application Time = time, TrashCode = myPackage.trashcode, WasteType = myPackage.WasteType, - Weight = Weight + Weight = Weight, + faccode = device.FacEcode, + ecode = device.Ecode, + province = device.Province, + city = device.City, + area = device.Area, + address = device.Address }); } } @@ -436,7 +448,13 @@ namespace Waste.Application TrashCode = myPackage.trashcode, WasteType = myPackage.WasteType, Weight = Weight, - WasteSType = wastestype + WasteSType = wastestype, + faccode = device.FacEcode, + ecode = device.Ecode, + province = device.Province, + city = device.City, + area = device.Area, + address = device.Address }); } } @@ -577,7 +595,13 @@ namespace Waste.Application Time = time, TrashCode = myPackage.Area, WasteType = myPackage.WasteType, - Weight = weight + Weight = weight, + faccode = device.FacEcode, + ecode = device.Ecode, + province = device.Province, + city = device.City, + area = device.Area, + address = device.Address }); } return new ResultInfo(ResultState.SUCCESS, "success"); diff --git a/Waste.Application/SubscribeInfo/Dtos/SubscribeDto.cs b/Waste.Application/SubscribeInfo/Dtos/SubscribeDto.cs index ca62abe..1641b4d 100644 --- a/Waste.Application/SubscribeInfo/Dtos/SubscribeDto.cs +++ b/Waste.Application/SubscribeInfo/Dtos/SubscribeDto.cs @@ -1,8 +1,4 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace Waste.Application.SubscribeInfo { @@ -132,6 +128,36 @@ namespace Waste.Application.SubscribeInfo /// 上报时间 /// public DateTime Time { get; set; } + + /// + /// 设备机器码 + /// + public string ecode { get; set; } + + /// + /// 设备编号 + /// + public string faccode { get; set; } + + /// + /// 设备所属省份 + /// + public string province { get; set; } + + /// + /// 设备所属城市 + /// + public string city { get; set; } + + /// + /// 设备所属区/县 + /// + public string area { get; set; } + + /// + /// 设备详细地址 + /// + public string address { get; set; } } /// @@ -184,5 +210,35 @@ namespace Waste.Application.SubscribeInfo /// 设备ID /// public Guid DeviceId { get; set; } + + /// + /// 设备机器码 + /// + public string ecode { get; set; } + + /// + /// 设备编号 + /// + public string faccode { get; set; } + + /// + /// 设备所属省份 + /// + public string province { get; set; } + + /// + /// 设备所属城市 + /// + public string city { get; set; } + + /// + /// 设备所属区/县 + /// + public string area { get; set; } + + /// + /// 设备详细地址 + /// + public string address { get; set; } } } \ No newline at end of file diff --git a/Waste.Application/ThirdApiInfo/OpenService.cs b/Waste.Application/ThirdApiInfo/OpenService.cs index 9441ccf..6b5f07f 100644 --- a/Waste.Application/ThirdApiInfo/OpenService.cs +++ b/Waste.Application/ThirdApiInfo/OpenService.cs @@ -224,7 +224,13 @@ namespace Waste.Application.ThirdApiInfo Time = DateTime.Now, TrashCode = returndata.trash, WasteType = type, - Weight = weight.ToDecimal() + Weight = weight.ToDecimal(), + faccode = device.FacEcode, + ecode = device.Ecode, + province = device.Province, + city = device.City, + area = device.Area, + address = device.Address }); } else diff --git a/Waste.Web.Entry/Properties/PublishProfiles/waste.ybhdmob.com.pubxml.user b/Waste.Web.Entry/Properties/PublishProfiles/waste.ybhdmob.com.pubxml.user index f786698..bbde834 100644 --- a/Waste.Web.Entry/Properties/PublishProfiles/waste.ybhdmob.com.pubxml.user +++ b/Waste.Web.Entry/Properties/PublishProfiles/waste.ybhdmob.com.pubxml.user @@ -5,7 +5,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121. <_PublishTargetUrl>D:\webpublish\waste.ybhdmob.com - True|2023-01-09T06:37:17.3219940Z;False|2023-01-09T14:36:37.2025779+08:00;True|2022-09-14T10:54:14.3430113+08:00;True|2022-08-24T10:11:56.9315738+08:00;True|2022-07-28T16:27:26.4646475+08:00;True|2022-07-26T18:02:16.8734313+08:00;True|2022-07-26T17:47:48.4802128+08:00;True|2022-07-26T10:16:29.8933802+08:00;True|2022-07-26T09:36:14.5292489+08:00;True|2022-07-12T17:26:37.8289741+08:00;True|2022-07-07T15:15:35.7942932+08:00;True|2022-07-07T14:38:14.6580938+08:00;True|2022-07-07T14:32:33.3480279+08:00;True|2022-07-06T08:59:01.5108509+08:00;True|2022-06-21T14:41:45.3390865+08:00;False|2022-06-21T14:31:42.6318272+08:00;True|2022-06-21T14:07:42.4016410+08:00;True|2022-06-20T15:37:14.0002383+08:00;True|2022-06-20T08:32:15.3735483+08:00;True|2022-06-18T10:39:25.0997617+08:00;True|2022-06-15T11:23:32.6444305+08:00;True|2022-06-07T10:26:48.8057155+08:00;True|2022-05-19T14:38:58.4564787+08:00;True|2022-05-19T10:00:43.2712891+08:00;True|2022-05-17T18:00:53.2618269+08:00;True|2022-05-17T17:55:33.2053115+08:00;True|2022-05-17T17:38:48.8279756+08:00;True|2022-05-16T16:44:49.1758100+08:00;True|2022-03-30T10:54:32.5565057+08:00;True|2022-03-30T10:53:48.9972377+08:00;True|2022-03-30T10:50:31.5745775+08:00;True|2022-03-30T10:47:50.1605527+08:00;True|2022-03-30T10:15:59.9812921+08:00;True|2022-03-29T09:29:45.1039655+08:00;True|2022-03-29T09:21:47.0149226+08:00;True|2022-03-28T10:33:44.7419612+08:00;True|2022-03-28T10:22:40.9448563+08:00;True|2022-03-28T10:19:15.1438519+08:00;True|2022-01-20T10:39:53.2000547+08:00;True|2021-11-23T17:45:59.0399234+08:00;True|2021-11-23T14:52:52.6108389+08:00;True|2021-11-23T13:47:55.8909321+08:00;True|2021-11-23T13:46:38.7796888+08:00;True|2021-11-23T13:42:14.9551976+08:00;True|2021-11-23T13:40:54.9093258+08:00;True|2021-11-23T13:31:49.0003794+08:00;True|2021-11-23T13:29:43.7414639+08:00;True|2021-10-12T15:18:06.6012215+08:00;True|2021-10-12T15:11:17.7752651+08:00;True|2021-10-12T14:54:39.0578509+08:00;True|2021-10-12T11:25:18.7098128+08:00;True|2021-09-18T15:34:20.7386778+08:00;True|2021-09-15T11:09:28.0068993+08:00;True|2021-09-07T12:19:33.4635211+08:00;True|2021-09-07T11:36:13.4563799+08:00;True|2021-09-03T15:41:46.2819586+08:00;True|2021-08-31T17:16:16.0336390+08:00;True|2021-08-31T16:05:30.7224440+08:00;True|2021-08-23T09:44:46.2114418+08:00;True|2021-08-19T20:32:56.2854974+08:00;True|2021-08-18T14:01:33.0411246+08:00;True|2021-08-17T10:05:15.4299188+08:00;True|2021-08-13T19:32:53.6307075+08:00;True|2021-08-13T19:29:50.5876782+08:00;True|2021-08-13T19:14:14.2545106+08:00;True|2021-08-13T15:24:09.4521125+08:00;True|2021-08-13T14:59:40.4579407+08:00;True|2021-08-13T10:02:29.7650246+08:00;True|2021-08-13T09:45:10.6245894+08:00;True|2021-08-12T20:11:21.5851106+08:00;True|2021-08-12T20:00:42.4820498+08:00;True|2021-08-12T18:44:08.3079650+08:00;True|2021-08-12T18:35:47.4730766+08:00;True|2021-08-12T18:32:10.9361388+08:00;True|2021-08-12T18:30:21.4006961+08:00;True|2021-08-12T18:13:00.9624470+08:00;True|2021-08-12T18:10:12.3459311+08:00;True|2021-08-12T18:09:18.8656414+08:00;True|2021-08-12T17:35:24.7213607+08:00;True|2021-08-11T07:54:57.1322848+08:00;True|2021-08-10T10:16:40.7495389+08:00;True|2021-08-03T11:16:02.7897282+08:00;True|2021-08-02T16:39:27.2332369+08:00;True|2021-08-02T15:07:40.7995318+08:00;True|2021-08-02T14:32:29.6885424+08:00;True|2021-08-02T14:31:18.6578543+08:00;True|2021-08-02T14:27:57.1301002+08:00;True|2021-08-02T10:55:40.3542370+08:00;True|2021-08-02T09:44:28.0994056+08:00;True|2021-08-01T13:49:38.4071985+08:00;True|2021-08-01T13:36:45.5372120+08:00;True|2021-08-01T11:00:19.6165520+08:00;True|2021-08-01T10:38:51.4029710+08:00;True|2021-07-31T20:27:53.6583811+08:00;True|2021-07-31T18:35:23.4214441+08:00;True|2021-07-31T17:34:14.0712243+08:00;True|2021-07-31T14:50:43.2065556+08:00;True|2021-07-30T17:59:30.2223340+08:00;True|2021-07-30T17:57:35.9412910+08:00;True|2021-07-30T17:07:58.3305971+08:00; + True|2024-02-21T05:50:30.0887271Z;True|2023-01-09T14:37:17.3219940+08:00;False|2023-01-09T14:36:37.2025779+08:00;True|2022-09-14T10:54:14.3430113+08:00;True|2022-08-24T10:11:56.9315738+08:00;True|2022-07-28T16:27:26.4646475+08:00;True|2022-07-26T18:02:16.8734313+08:00;True|2022-07-26T17:47:48.4802128+08:00;True|2022-07-26T10:16:29.8933802+08:00;True|2022-07-26T09:36:14.5292489+08:00;True|2022-07-12T17:26:37.8289741+08:00;True|2022-07-07T15:15:35.7942932+08:00;True|2022-07-07T14:38:14.6580938+08:00;True|2022-07-07T14:32:33.3480279+08:00;True|2022-07-06T08:59:01.5108509+08:00;True|2022-06-21T14:41:45.3390865+08:00;False|2022-06-21T14:31:42.6318272+08:00;True|2022-06-21T14:07:42.4016410+08:00;True|2022-06-20T15:37:14.0002383+08:00;True|2022-06-20T08:32:15.3735483+08:00;True|2022-06-18T10:39:25.0997617+08:00;True|2022-06-15T11:23:32.6444305+08:00;True|2022-06-07T10:26:48.8057155+08:00;True|2022-05-19T14:38:58.4564787+08:00;True|2022-05-19T10:00:43.2712891+08:00;True|2022-05-17T18:00:53.2618269+08:00;True|2022-05-17T17:55:33.2053115+08:00;True|2022-05-17T17:38:48.8279756+08:00;True|2022-05-16T16:44:49.1758100+08:00;True|2022-03-30T10:54:32.5565057+08:00;True|2022-03-30T10:53:48.9972377+08:00;True|2022-03-30T10:50:31.5745775+08:00;True|2022-03-30T10:47:50.1605527+08:00;True|2022-03-30T10:15:59.9812921+08:00;True|2022-03-29T09:29:45.1039655+08:00;True|2022-03-29T09:21:47.0149226+08:00;True|2022-03-28T10:33:44.7419612+08:00;True|2022-03-28T10:22:40.9448563+08:00;True|2022-03-28T10:19:15.1438519+08:00;True|2022-01-20T10:39:53.2000547+08:00;True|2021-11-23T17:45:59.0399234+08:00;True|2021-11-23T14:52:52.6108389+08:00;True|2021-11-23T13:47:55.8909321+08:00;True|2021-11-23T13:46:38.7796888+08:00;True|2021-11-23T13:42:14.9551976+08:00;True|2021-11-23T13:40:54.9093258+08:00;True|2021-11-23T13:31:49.0003794+08:00;True|2021-11-23T13:29:43.7414639+08:00;True|2021-10-12T15:18:06.6012215+08:00;True|2021-10-12T15:11:17.7752651+08:00;True|2021-10-12T14:54:39.0578509+08:00;True|2021-10-12T11:25:18.7098128+08:00;True|2021-09-18T15:34:20.7386778+08:00;True|2021-09-15T11:09:28.0068993+08:00;True|2021-09-07T12:19:33.4635211+08:00;True|2021-09-07T11:36:13.4563799+08:00;True|2021-09-03T15:41:46.2819586+08:00;True|2021-08-31T17:16:16.0336390+08:00;True|2021-08-31T16:05:30.7224440+08:00;True|2021-08-23T09:44:46.2114418+08:00;True|2021-08-19T20:32:56.2854974+08:00;True|2021-08-18T14:01:33.0411246+08:00;True|2021-08-17T10:05:15.4299188+08:00;True|2021-08-13T19:32:53.6307075+08:00;True|2021-08-13T19:29:50.5876782+08:00;True|2021-08-13T19:14:14.2545106+08:00;True|2021-08-13T15:24:09.4521125+08:00;True|2021-08-13T14:59:40.4579407+08:00;True|2021-08-13T10:02:29.7650246+08:00;True|2021-08-13T09:45:10.6245894+08:00;True|2021-08-12T20:11:21.5851106+08:00;True|2021-08-12T20:00:42.4820498+08:00;True|2021-08-12T18:44:08.3079650+08:00;True|2021-08-12T18:35:47.4730766+08:00;True|2021-08-12T18:32:10.9361388+08:00;True|2021-08-12T18:30:21.4006961+08:00;True|2021-08-12T18:13:00.9624470+08:00;True|2021-08-12T18:10:12.3459311+08:00;True|2021-08-12T18:09:18.8656414+08:00;True|2021-08-12T17:35:24.7213607+08:00;True|2021-08-11T07:54:57.1322848+08:00;True|2021-08-10T10:16:40.7495389+08:00;True|2021-08-03T11:16:02.7897282+08:00;True|2021-08-02T16:39:27.2332369+08:00;True|2021-08-02T15:07:40.7995318+08:00;True|2021-08-02T14:32:29.6885424+08:00;True|2021-08-02T14:31:18.6578543+08:00;True|2021-08-02T14:27:57.1301002+08:00;True|2021-08-02T10:55:40.3542370+08:00;True|2021-08-02T09:44:28.0994056+08:00;True|2021-08-01T13:49:38.4071985+08:00;True|2021-08-01T13:36:45.5372120+08:00;True|2021-08-01T11:00:19.6165520+08:00;True|2021-08-01T10:38:51.4029710+08:00;True|2021-07-31T20:27:53.6583811+08:00;True|2021-07-31T18:35:23.4214441+08:00;True|2021-07-31T17:34:14.0712243+08:00;True|2021-07-31T14:50:43.2065556+08:00;True|2021-07-30T17:59:30.2223340+08:00;True|2021-07-30T17:57:35.9412910+08:00; \ No newline at end of file From 6b9092d8c8048a8a090eeb839268c68f19073eb2 Mon Sep 17 00:00:00 2001 From: liuzl Date: Thu, 22 Feb 2024 09:29:49 +0800 Subject: [PATCH 5/5] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=A2=9E=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Waste.Application/SubscribeInfo/Dtos/SubscribeDto.cs | 5 +++++ Waste.Application/SubscribeInfo/SubscribeService.cs | 5 +++++ .../Properties/PublishProfiles/waste.ybhdmob.com.pubxml.user | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Waste.Application/SubscribeInfo/Dtos/SubscribeDto.cs b/Waste.Application/SubscribeInfo/Dtos/SubscribeDto.cs index 1641b4d..322d8a6 100644 --- a/Waste.Application/SubscribeInfo/Dtos/SubscribeDto.cs +++ b/Waste.Application/SubscribeInfo/Dtos/SubscribeDto.cs @@ -240,5 +240,10 @@ namespace Waste.Application.SubscribeInfo /// 设备详细地址 /// public string address { get; set; } + + /// + /// 最近心跳时间 + /// + public long BeatTime { get; set; } } } \ No newline at end of file diff --git a/Waste.Application/SubscribeInfo/SubscribeService.cs b/Waste.Application/SubscribeInfo/SubscribeService.cs index 5e338a7..81442a4 100644 --- a/Waste.Application/SubscribeInfo/SubscribeService.cs +++ b/Waste.Application/SubscribeInfo/SubscribeService.cs @@ -265,6 +265,11 @@ namespace Waste.Application.SubscribeInfo { string errmsg = string.Empty; var senddata = data.Adapt(); + var devicedata = await dbClient.Queryable().Where(x => x.DeviceId == data.DeviceId).Select(x => new W_DeviceData + { + LastBeatTime = x.LastBeatTime + }).FirstAsync(); + senddata.BeatTime = devicedata == null ? 0 : devicedata.LastBeatTime.GetTimeStamp(); var response = await data.Url .SetBody(senddata, "application/json", Encoding.UTF8) .OnException((res, errors) => diff --git a/Waste.Web.Entry/Properties/PublishProfiles/waste.ybhdmob.com.pubxml.user b/Waste.Web.Entry/Properties/PublishProfiles/waste.ybhdmob.com.pubxml.user index bbde834..426736d 100644 --- a/Waste.Web.Entry/Properties/PublishProfiles/waste.ybhdmob.com.pubxml.user +++ b/Waste.Web.Entry/Properties/PublishProfiles/waste.ybhdmob.com.pubxml.user @@ -5,7 +5,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121. <_PublishTargetUrl>D:\webpublish\waste.ybhdmob.com - True|2024-02-21T05:50:30.0887271Z;True|2023-01-09T14:37:17.3219940+08:00;False|2023-01-09T14:36:37.2025779+08:00;True|2022-09-14T10:54:14.3430113+08:00;True|2022-08-24T10:11:56.9315738+08:00;True|2022-07-28T16:27:26.4646475+08:00;True|2022-07-26T18:02:16.8734313+08:00;True|2022-07-26T17:47:48.4802128+08:00;True|2022-07-26T10:16:29.8933802+08:00;True|2022-07-26T09:36:14.5292489+08:00;True|2022-07-12T17:26:37.8289741+08:00;True|2022-07-07T15:15:35.7942932+08:00;True|2022-07-07T14:38:14.6580938+08:00;True|2022-07-07T14:32:33.3480279+08:00;True|2022-07-06T08:59:01.5108509+08:00;True|2022-06-21T14:41:45.3390865+08:00;False|2022-06-21T14:31:42.6318272+08:00;True|2022-06-21T14:07:42.4016410+08:00;True|2022-06-20T15:37:14.0002383+08:00;True|2022-06-20T08:32:15.3735483+08:00;True|2022-06-18T10:39:25.0997617+08:00;True|2022-06-15T11:23:32.6444305+08:00;True|2022-06-07T10:26:48.8057155+08:00;True|2022-05-19T14:38:58.4564787+08:00;True|2022-05-19T10:00:43.2712891+08:00;True|2022-05-17T18:00:53.2618269+08:00;True|2022-05-17T17:55:33.2053115+08:00;True|2022-05-17T17:38:48.8279756+08:00;True|2022-05-16T16:44:49.1758100+08:00;True|2022-03-30T10:54:32.5565057+08:00;True|2022-03-30T10:53:48.9972377+08:00;True|2022-03-30T10:50:31.5745775+08:00;True|2022-03-30T10:47:50.1605527+08:00;True|2022-03-30T10:15:59.9812921+08:00;True|2022-03-29T09:29:45.1039655+08:00;True|2022-03-29T09:21:47.0149226+08:00;True|2022-03-28T10:33:44.7419612+08:00;True|2022-03-28T10:22:40.9448563+08:00;True|2022-03-28T10:19:15.1438519+08:00;True|2022-01-20T10:39:53.2000547+08:00;True|2021-11-23T17:45:59.0399234+08:00;True|2021-11-23T14:52:52.6108389+08:00;True|2021-11-23T13:47:55.8909321+08:00;True|2021-11-23T13:46:38.7796888+08:00;True|2021-11-23T13:42:14.9551976+08:00;True|2021-11-23T13:40:54.9093258+08:00;True|2021-11-23T13:31:49.0003794+08:00;True|2021-11-23T13:29:43.7414639+08:00;True|2021-10-12T15:18:06.6012215+08:00;True|2021-10-12T15:11:17.7752651+08:00;True|2021-10-12T14:54:39.0578509+08:00;True|2021-10-12T11:25:18.7098128+08:00;True|2021-09-18T15:34:20.7386778+08:00;True|2021-09-15T11:09:28.0068993+08:00;True|2021-09-07T12:19:33.4635211+08:00;True|2021-09-07T11:36:13.4563799+08:00;True|2021-09-03T15:41:46.2819586+08:00;True|2021-08-31T17:16:16.0336390+08:00;True|2021-08-31T16:05:30.7224440+08:00;True|2021-08-23T09:44:46.2114418+08:00;True|2021-08-19T20:32:56.2854974+08:00;True|2021-08-18T14:01:33.0411246+08:00;True|2021-08-17T10:05:15.4299188+08:00;True|2021-08-13T19:32:53.6307075+08:00;True|2021-08-13T19:29:50.5876782+08:00;True|2021-08-13T19:14:14.2545106+08:00;True|2021-08-13T15:24:09.4521125+08:00;True|2021-08-13T14:59:40.4579407+08:00;True|2021-08-13T10:02:29.7650246+08:00;True|2021-08-13T09:45:10.6245894+08:00;True|2021-08-12T20:11:21.5851106+08:00;True|2021-08-12T20:00:42.4820498+08:00;True|2021-08-12T18:44:08.3079650+08:00;True|2021-08-12T18:35:47.4730766+08:00;True|2021-08-12T18:32:10.9361388+08:00;True|2021-08-12T18:30:21.4006961+08:00;True|2021-08-12T18:13:00.9624470+08:00;True|2021-08-12T18:10:12.3459311+08:00;True|2021-08-12T18:09:18.8656414+08:00;True|2021-08-12T17:35:24.7213607+08:00;True|2021-08-11T07:54:57.1322848+08:00;True|2021-08-10T10:16:40.7495389+08:00;True|2021-08-03T11:16:02.7897282+08:00;True|2021-08-02T16:39:27.2332369+08:00;True|2021-08-02T15:07:40.7995318+08:00;True|2021-08-02T14:32:29.6885424+08:00;True|2021-08-02T14:31:18.6578543+08:00;True|2021-08-02T14:27:57.1301002+08:00;True|2021-08-02T10:55:40.3542370+08:00;True|2021-08-02T09:44:28.0994056+08:00;True|2021-08-01T13:49:38.4071985+08:00;True|2021-08-01T13:36:45.5372120+08:00;True|2021-08-01T11:00:19.6165520+08:00;True|2021-08-01T10:38:51.4029710+08:00;True|2021-07-31T20:27:53.6583811+08:00;True|2021-07-31T18:35:23.4214441+08:00;True|2021-07-31T17:34:14.0712243+08:00;True|2021-07-31T14:50:43.2065556+08:00;True|2021-07-30T17:59:30.2223340+08:00;True|2021-07-30T17:57:35.9412910+08:00; + True|2024-02-22T01:28:06.5641782Z;True|2024-02-22T09:23:28.6539914+08:00;True|2024-02-21T13:50:30.0887271+08:00;True|2023-01-09T14:37:17.3219940+08:00;False|2023-01-09T14:36:37.2025779+08:00;True|2022-09-14T10:54:14.3430113+08:00;True|2022-08-24T10:11:56.9315738+08:00;True|2022-07-28T16:27:26.4646475+08:00;True|2022-07-26T18:02:16.8734313+08:00;True|2022-07-26T17:47:48.4802128+08:00;True|2022-07-26T10:16:29.8933802+08:00;True|2022-07-26T09:36:14.5292489+08:00;True|2022-07-12T17:26:37.8289741+08:00;True|2022-07-07T15:15:35.7942932+08:00;True|2022-07-07T14:38:14.6580938+08:00;True|2022-07-07T14:32:33.3480279+08:00;True|2022-07-06T08:59:01.5108509+08:00;True|2022-06-21T14:41:45.3390865+08:00;False|2022-06-21T14:31:42.6318272+08:00;True|2022-06-21T14:07:42.4016410+08:00;True|2022-06-20T15:37:14.0002383+08:00;True|2022-06-20T08:32:15.3735483+08:00;True|2022-06-18T10:39:25.0997617+08:00;True|2022-06-15T11:23:32.6444305+08:00;True|2022-06-07T10:26:48.8057155+08:00;True|2022-05-19T14:38:58.4564787+08:00;True|2022-05-19T10:00:43.2712891+08:00;True|2022-05-17T18:00:53.2618269+08:00;True|2022-05-17T17:55:33.2053115+08:00;True|2022-05-17T17:38:48.8279756+08:00;True|2022-05-16T16:44:49.1758100+08:00;True|2022-03-30T10:54:32.5565057+08:00;True|2022-03-30T10:53:48.9972377+08:00;True|2022-03-30T10:50:31.5745775+08:00;True|2022-03-30T10:47:50.1605527+08:00;True|2022-03-30T10:15:59.9812921+08:00;True|2022-03-29T09:29:45.1039655+08:00;True|2022-03-29T09:21:47.0149226+08:00;True|2022-03-28T10:33:44.7419612+08:00;True|2022-03-28T10:22:40.9448563+08:00;True|2022-03-28T10:19:15.1438519+08:00;True|2022-01-20T10:39:53.2000547+08:00;True|2021-11-23T17:45:59.0399234+08:00;True|2021-11-23T14:52:52.6108389+08:00;True|2021-11-23T13:47:55.8909321+08:00;True|2021-11-23T13:46:38.7796888+08:00;True|2021-11-23T13:42:14.9551976+08:00;True|2021-11-23T13:40:54.9093258+08:00;True|2021-11-23T13:31:49.0003794+08:00;True|2021-11-23T13:29:43.7414639+08:00;True|2021-10-12T15:18:06.6012215+08:00;True|2021-10-12T15:11:17.7752651+08:00;True|2021-10-12T14:54:39.0578509+08:00;True|2021-10-12T11:25:18.7098128+08:00;True|2021-09-18T15:34:20.7386778+08:00;True|2021-09-15T11:09:28.0068993+08:00;True|2021-09-07T12:19:33.4635211+08:00;True|2021-09-07T11:36:13.4563799+08:00;True|2021-09-03T15:41:46.2819586+08:00;True|2021-08-31T17:16:16.0336390+08:00;True|2021-08-31T16:05:30.7224440+08:00;True|2021-08-23T09:44:46.2114418+08:00;True|2021-08-19T20:32:56.2854974+08:00;True|2021-08-18T14:01:33.0411246+08:00;True|2021-08-17T10:05:15.4299188+08:00;True|2021-08-13T19:32:53.6307075+08:00;True|2021-08-13T19:29:50.5876782+08:00;True|2021-08-13T19:14:14.2545106+08:00;True|2021-08-13T15:24:09.4521125+08:00;True|2021-08-13T14:59:40.4579407+08:00;True|2021-08-13T10:02:29.7650246+08:00;True|2021-08-13T09:45:10.6245894+08:00;True|2021-08-12T20:11:21.5851106+08:00;True|2021-08-12T20:00:42.4820498+08:00;True|2021-08-12T18:44:08.3079650+08:00;True|2021-08-12T18:35:47.4730766+08:00;True|2021-08-12T18:32:10.9361388+08:00;True|2021-08-12T18:30:21.4006961+08:00;True|2021-08-12T18:13:00.9624470+08:00;True|2021-08-12T18:10:12.3459311+08:00;True|2021-08-12T18:09:18.8656414+08:00;True|2021-08-12T17:35:24.7213607+08:00;True|2021-08-11T07:54:57.1322848+08:00;True|2021-08-10T10:16:40.7495389+08:00;True|2021-08-03T11:16:02.7897282+08:00;True|2021-08-02T16:39:27.2332369+08:00;True|2021-08-02T15:07:40.7995318+08:00;True|2021-08-02T14:32:29.6885424+08:00;True|2021-08-02T14:31:18.6578543+08:00;True|2021-08-02T14:27:57.1301002+08:00;True|2021-08-02T10:55:40.3542370+08:00;True|2021-08-02T09:44:28.0994056+08:00;True|2021-08-01T13:49:38.4071985+08:00;True|2021-08-01T13:36:45.5372120+08:00;True|2021-08-01T11:00:19.6165520+08:00;True|2021-08-01T10:38:51.4029710+08:00;True|2021-07-31T20:27:53.6583811+08:00;True|2021-07-31T18:35:23.4214441+08:00;True|2021-07-31T17:34:14.0712243+08:00;True|2021-07-31T14:50:43.2065556+08:00; \ No newline at end of file