Browse Source

完善接口错误提示

lifa 1 year ago
parent
commit
3d74cc832a
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/platform/ZhonTai.Admin/Services/DiTuiAPI/DiTuiAPIService.cs

+ 4 - 1
src/platform/ZhonTai.Admin/Services/DiTuiAPI/DiTuiAPIService.cs

@@ -68,7 +68,10 @@ namespace ZhonTai.Admin.Services.DiTuiAPI
             }
             var org = await _orgRepository.Select.Where(a => a.Code == platform).DisableGlobalFilter()
                 .FirstAsync(a => new { a.Name, a.TenantId });
-
+            if(org is null)
+            {
+                throw ResultOutput.Exception($"未查询到相关平台信息,请核实Platform");
+            }
 
             using (_platformUserRepository.DataFilter.DisableAll())
             {