Parcourir la source

新增成果新增限制

anderx il y a 7 ans
Parent
commit
7b2f2b67f9

+ 4 - 0
src/main/java/com/goafanti/app/controller/AppUserController.java

@@ -408,6 +408,10 @@ public class AppUserController extends CertifyApiController {
             res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR, "找不到关键词", "关键词"));
             return res;
         }
+        if (null == ia.getFieldA()) {
+            res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR, "找不到行业", "行业"));
+            return res;
+        }
         for (int i = 0; i < keywords.length; i++) {
             if (AFTConstants.KEYWORDLENTH < keywords[i].length()) {
                 res.getError().add(buildError(ErrorConstants.PARAM_ERROR, "", "关键词长度"));