zmq 1 year ago
parent
commit
80c2cdd1ae

+ 2 - 1
src/platform/ZhonTai.Admin/Services/DiTuiAPI/KuaKe/KuaKeService.cs

@@ -63,10 +63,11 @@ namespace ZhonTai.Admin.Services.DiTuiAPI.KuaKe
         public async Task<KuakeDetailOutput> Detail([Required]long ProjectId)
         {
             var project = await _projectRepository.Select.Where(m => m.Id == ProjectId && m.ProjectType == 2).ToOneAsync();
-            if (project?.Id <= 0)
+            if (!(project?.Id > 0))
             {
                 throw ResultOutput.Exception("项目不存在");
             }
+
             KuakeDetailOutput output = new KuakeDetailOutput();
             output.SignUrl = _appConfig.KuaKeSet.SignUrl;
             output.FirstImg = _appConfig.KuaKeSet.FirstImg;