diff --git a/WeiCloud.Fusion/ThirdPartyServices/ThirdPartyServices.API/Controllers/ShenZhouShengAn/SunPalaceBoardSafetyController.cs b/WeiCloud.Fusion/ThirdPartyServices/ThirdPartyServices.API/Controllers/ShenZhouShengAn/SunPalaceBoardSafetyController.cs index 5b9ccce..f256334 100644 --- a/WeiCloud.Fusion/ThirdPartyServices/ThirdPartyServices.API/Controllers/ShenZhouShengAn/SunPalaceBoardSafetyController.cs +++ b/WeiCloud.Fusion/ThirdPartyServices/ThirdPartyServices.API/Controllers/ShenZhouShengAn/SunPalaceBoardSafetyController.cs @@ -96,7 +96,7 @@ namespace ThirdPartyServices.API.Controllers.ShenZhouShengAn /// /// [HttpGet("injure")] - public async Task> GetInjureInfo() + public async Task>> GetInjureInfo() { return await _secSituationService.GetInjureInfo(); } diff --git a/WeiCloud.Fusion/ThirdPartyServices/ThirdPartyServices.DomainService/ShenZhouShengAn/ISunPalaceBoardSafetyService.cs b/WeiCloud.Fusion/ThirdPartyServices/ThirdPartyServices.DomainService/ShenZhouShengAn/ISunPalaceBoardSafetyService.cs index 12ed028..0847663 100644 --- a/WeiCloud.Fusion/ThirdPartyServices/ThirdPartyServices.DomainService/ShenZhouShengAn/ISunPalaceBoardSafetyService.cs +++ b/WeiCloud.Fusion/ThirdPartyServices/ThirdPartyServices.DomainService/ShenZhouShengAn/ISunPalaceBoardSafetyService.cs @@ -35,7 +35,7 @@ namespace ThirdPartyServices.DomainService.ShenZhouShengAn /// /// /// - Task> GetInjureInfo(); + Task>> GetInjureInfo(); Task> GetRegionRootInfo(RegionRootInfoReqDto dto ); diff --git a/WeiCloud.Fusion/ThirdPartyServices/ThirdPartyServices.DomainService/ShenZhouShengAn/SunPalaceBoardSafetyService.cs b/WeiCloud.Fusion/ThirdPartyServices/ThirdPartyServices.DomainService/ShenZhouShengAn/SunPalaceBoardSafetyService.cs index 670f661..b1022f4 100644 --- a/WeiCloud.Fusion/ThirdPartyServices/ThirdPartyServices.DomainService/ShenZhouShengAn/SunPalaceBoardSafetyService.cs +++ b/WeiCloud.Fusion/ThirdPartyServices/ThirdPartyServices.DomainService/ShenZhouShengAn/SunPalaceBoardSafetyService.cs @@ -402,9 +402,9 @@ namespace ThirdPartyServices.DomainService.ShenZhouShengAn /// /// /// - public async Task> GetInjureInfo() + public async Task>> GetInjureInfo() { - ApiResult result = new ApiResult() { Code = 200, Msg = "接口调用成功", Data = null }; + ApiResult> result = new ApiResult>() { Code = 200, Msg = "接口调用成功", Data = null }; try { @@ -413,7 +413,7 @@ namespace ThirdPartyServices.DomainService.ShenZhouShengAn if (string.IsNullOrWhiteSpace(token)) { _logger.LogWarning("GetInjureInfo接口获取token失败"); - return ApiResult.IsFail("GetInjureInfo接口获取token失败"); + return ApiResult>.IsFail("GetInjureInfo接口获取token失败"); } //获取用户配置 @@ -421,7 +421,7 @@ namespace ThirdPartyServices.DomainService.ShenZhouShengAn if (loginUsers.Code == "Error") { _logger.LogWarning("GetInjureInfo接口获取用户配置失败"); - return ApiResult.IsFail("GetInjureInfo接口获取用户配置失败"); + return ApiResult>.IsFail("GetInjureInfo接口获取用户配置失败"); } InjureReqDto dto = new() { @@ -431,12 +431,12 @@ namespace ThirdPartyServices.DomainService.ShenZhouShengAn HttpClientResult riskResult = await _tokenProviderService .SendAndParseAsync>( - "https://zrh.szdunan.cn/v1/api/danger/rectification/check/detail", + "https://zrh.szdunan.cn/v1/api/risk/init/injure", token, dto, HttpMethod.Post); if (riskResult != null && riskResult.Data != null && riskResult.Data.ToString()!.Length > 10) { - InjureResDto httpClientResult = JsonSerializer.Deserialize(riskResult.Data.ToString()!)!; + List httpClientResult = JsonSerializer.Deserialize>(riskResult.Data.ToString()!)!; if (httpClientResult != null) { result.Data = httpClientResult; @@ -446,7 +446,7 @@ namespace ThirdPartyServices.DomainService.ShenZhouShengAn catch (Exception ex) { _logger.LogWarning(ex, "GetInjureInfo接口出错"); - return ApiResult.IsFail($"GetInjureInfo接口出错{ex.Message}"); + return ApiResult>.IsFail($"GetInjureInfo接口出错{ex.Message}"); } return result; @@ -482,7 +482,7 @@ namespace ThirdPartyServices.DomainService.ShenZhouShengAn HttpClientResult riskResult = await _tokenProviderService .SendAndParseAsync>( - "https://zrh.szdunan.cn/v1/api/danger/rectification/check/detail", + "https://zrh.szdunan.cn/v1/api/region/index_no_check_region", token, dto, HttpMethod.Post); if (riskResult != null && riskResult.Data != null && riskResult.Data.ToString()!.Length > 10)