diff --git a/YD_YiLu.Commons/Dto/DeviceSync/ErrorUserCallbackDto.cs b/YD_YiLu.Commons/Dto/DeviceSync/ErrorUserCallbackDto.cs new file mode 100644 index 0000000..c8975d9 --- /dev/null +++ b/YD_YiLu.Commons/Dto/DeviceSync/ErrorUserCallbackDto.cs @@ -0,0 +1,24 @@ +using System.Collections.Generic; + +namespace YD_YiLu.Commons.Dto.DeviceSync +{ + /// + /// 信息下发失败回调请求 + /// + public class ErrorUserCallbackRequestDto + { + public long SyncId { get; set; } + public int DeviceType { get; set; } + public string DeviceSerial { get; set; } + public List ErrorUsers { get; set; } + } + + /// + /// 失败人员信息 + /// + public class ErrorUserCallbackItemDto + { + public string UserSerial { get; set; } + public string ErrorMessage { get; set; } + } +} diff --git a/YD_YiLu/Controllers/SettingController.cs b/YD_YiLu/Controllers/SettingController.cs index d0b7260..e4c75f2 100644 --- a/YD_YiLu/Controllers/SettingController.cs +++ b/YD_YiLu/Controllers/SettingController.cs @@ -28,6 +28,21 @@ namespace YD_YiLu.Api.Controllers return await _deviceSyncService.AppVerifyAsync(dto); } + /// + /// 信息下发失败回调 + /// + [HttpPost] + [Route("/setting/callback/error_user")] + public object ErrorUserCallback([FromBody] ErrorUserCallbackRequestDto dto) + { + return new + { + code = 0, + msg = "OK", + data = 1 + }; + } + /// /// 新增app版本 /// diff --git a/YD_YiLu/Program.cs b/YD_YiLu/Program.cs index db274a4..2699c22 100644 --- a/YD_YiLu/Program.cs +++ b/YD_YiLu/Program.cs @@ -19,7 +19,7 @@ namespace YD_YiLu.Api { serverOptions.Limits.MaxRequestBodySize = 10485760; }); - webBuilder.UseKestrel().UseUrls("http://*:9996"); + webBuilder.UseKestrel().UseUrls("http://*:9997"); webBuilder.UseIIS(); webBuilder.UseStartup(); }).UseServiceProviderFactory(new AutofacServiceProviderFactory()); diff --git a/YD_YiLu/appsettings.json b/YD_YiLu/appsettings.json index 6485222..ead8ce2 100644 --- a/YD_YiLu/appsettings.json +++ b/YD_YiLu/appsettings.json @@ -33,7 +33,7 @@ "DbConnectionString": " Data Source=rm-uf64b8oxdt19pfyxfao.sqlserver.rds.aliyuncs.com;Database=SmartSportsServerDB_QA;User ID=qa;Password=Admin@123;Connect Timeout=500;", "SmartSportsString": " Data Source=rm-uf64b8oxdt19pfyxfao.sqlserver.rds.aliyuncs.com;Database=SmartSportsServerDB_QA;User ID=qa;Password=Admin@123;Connect Timeout=500;", - "CorsUrls": "http://localhost:8081,http://localhost:8080,http://localhost:7080,http://localhost:9980,http://127.0.0.1:9994,http://localhost:9994", + "CorsUrls": "http://localhost:8081,http://localhost:8080,http://localhost:7080,http://localhost:9980,http://127.0.0.1:9997,http://localhost:9997", "WeChat": { "Appid": "xxx",