Explorar el Código

成果合作方式必填

liliang4869 hace 7 años
padre
commit
5c0023ac78

+ 4 - 1
src/main/java/com/goafanti/achievement/controller/UserAchievementApiController.java

@@ -428,7 +428,10 @@ public class UserAchievementApiController extends CertifyApiController {
 			res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR, "找不到关键词", "关键词"));
 			return res;
 		}
-
+		if(ia.getCooperationMode()== null) {
+			res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR, "找不到合作方式", "合作方式"));
+			return res;
+		}
 	
 		for (int i = 0; i < keywords.length; i++) {
 			if (AFTConstants.KEYWORDLENTH < keywords[i].length()) {