ソースを参照

区域选择问题报错提示

guo00guo 5 年 前
コミット
5c77590fc2

+ 4 - 2
site/src/main/java/com/mooctest/crowd/site/controller/CrowdProjectController.java

@@ -44,7 +44,8 @@ public class CrowdProjectController {
         if (result.hasErrors())
             throw new BaseException(result.getFieldErrors().toString());
         else if (!crowdTestProjectCommand.isLegal())
-            throw new BaseException("信息不合法,项目可见性存在问题");
+            throw new BaseException("信息不合法,项目可见性必须选择指定的市");
+//            throw new BaseException("信息不合法,项目可见性存在问题");
         return projectService.createCrowdProject(crowdTestProjectCommand);
     }
 
@@ -85,7 +86,8 @@ public class CrowdProjectController {
         if (result.hasErrors())
             throw new BaseException(result.getFieldErrors().toString());
         else if (!crowdTestProjectCommand.isLegal())
-            throw new BaseException("信息不合法,项目可见性存在问题");
+            throw new BaseException("信息不合法,项目可见性必须选择指定的市");
+//            throw new BaseException("信息不合法,项目可见性存在问题");
         return projectService.updateProject(projectCode, crowdTestProjectCommand);
     }