Antiloveg 8 years ago
parent
commit
5a1f076f6f

+ 1 - 1
src/main/java/com/goafanti/common/controller/PublicController.java

@@ -433,7 +433,7 @@ public class PublicController extends BaseController {
 			return res;
 		}
 
-		if (!UserType.ORGANIZATION.getCode().equals(type) || !UserType.PERSONAL.getCode().equals(type)) {
+		if (!UserType.ORGANIZATION.getCode().equals(type) && !UserType.PERSONAL.getCode().equals(type)) {
 			res.getError().add(buildError(ErrorConstants.PARAM_ERROR, "", "type"));
 			return res;
 		}