修改一些不符合规范代码

pull/42/head
刘鑫 4 days ago
parent 8c084e1656
commit a80bb17b3a
  1. 2
      WeiCloud.Fusion/AlarmService/Alarm.DomainService/DahAlarm/DahuaGeneralCtlService.cs
  2. 2
      WeiCloud.Fusion/ThirdPartyServices/ThirdPartyServices.DomainService/PuCe/SunPlaceBoardWorkOrderService.cs
  3. 4
      WeiCloud.Fusion/ThirdPartyServices/ThirdPartyServices.DomainService/PuTianSuYuan/SunPalaceBoardFacilityService.cs

@ -196,7 +196,7 @@ namespace Alarm.DomainService.DahAlarm
{
if (dto is null)
{
result.Code = "500";
result.Code = "2005";
result.Msg = "请求参数不能为空";
result.Data = false;
_logger.LogWarning("大华报警事件订阅回调处理失败,参数不能为空");

@ -79,7 +79,7 @@ namespace ThirdPartyServices.DomainService.PuCe
/// <returns></returns>
public async Task<ApiResult<List<WorkOrderTimelineDto>>> GetTimelineListByOrderId(string orderId)
{
ApiResult<List<WorkOrderTimelineDto>> result = new ApiResult<List<WorkOrderTimelineDto>>() { Code = 200, Msg = "调用接口成功" };
ApiResult<List<WorkOrderTimelineDto>> result = new() { Code = 200, Msg = "调用接口成功" };
var url = $"https://zrh.hservices.online/prod-api/yzs/timeline/getTimelineListByOrderId?orderId={orderId}";

@ -19,7 +19,7 @@ namespace ThirdPartyServices.DomainService.PuTianSuYuan
public async Task<ApiResult<List<AssetOverviewResDto>>> GetAssetDashboardEchart(SecSituationQueryDto dto)
{
ApiResult<List<AssetOverviewResDto>> result = new ApiResult<List<AssetOverviewResDto>>() { Code = 200, Msg = "接口调用成功" };
ApiResult<List<AssetOverviewResDto>> result = new ApiResult<List<AssetOverviewResDto>>() { Code = 200, Msg = "接口调用成功", Data = [] };
DateTime start = DateTime.Now;
DateTime end = DateTime.Now;
@ -151,7 +151,7 @@ namespace ThirdPartyServices.DomainService.PuTianSuYuan
/// <exception cref="NotImplementedException"></exception>
public async Task<ApiResult<List<AssetTypeResDto>>> GetAssetTypeEchart(SecSituationQueryDto dto)
{
ApiResult<List<AssetTypeResDto>> result = new ApiResult<List<AssetTypeResDto>>() { Code = 200, Msg = "接口调用成功" };
ApiResult<List<AssetTypeResDto>> result = new ApiResult<List<AssetTypeResDto>>() { Code = 200, Msg = "接口调用成功", Data = [] };
DateTime start = DateTime.Now;
DateTime end = DateTime.Now;

Loading…
Cancel
Save