TANG JIANG 1 year ago
parent
commit
73dd1f6649
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/DataSharing/Province/PusherProviderService.cs

+ 2 - 2
src/DataSharing/Province/PusherProviderService.cs

@@ -52,7 +52,7 @@ namespace DataSharing.Province
             if (dto is null)
                 return;
 
-            ProvinceResponse result = null;
+            ProvinceResponse result = new();
 
             if (dto.PathType == EPathType.HuiJu) //汇聚推送
                 result = await _huiJuClient.RequestAsync<ProvinceResponse>(dto.Path, dto.HttpMethod, dto.Request, cancellationToken);
@@ -60,7 +60,7 @@ namespace DataSharing.Province
             else if (dto.PathType == EPathType.XieTong)//协同推送
                 result = await _xieTongClient.RequestAsync<ProvinceResponse>(dto.Path, dto.HttpMethod, dto.Request, cancellationToken);
 
-            else if (dto.PathType == EPathType.XieTong)  //附件
+            else if (dto.PathType == EPathType.File)  //附件
             {
                 if (dto != null && dto.FileJson != null && dto.FileJson.Count > 0)
                 {