Browse Source

客户中心-帐号管理新增昵称字段限制

anderx 7 years ago
parent
commit
196d2a05c1

+ 3 - 0
src/main/java/com/goafanti/user/controller/UserApiController.java

@@ -700,6 +700,9 @@ public class UserApiController extends BaseApiController {
 				||StringUtils.isBlank(nickname)){
 			res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR,"用户信息不全"));
 		}
+		if (nickname.length()>6) {
+			res.getError().add(buildError("昵称长度必须小于6","昵称长度必须小于6"));
+		}
 		User user = new User();
 		user.setId(TokenManager.getUserId());
 		user.setIdentifyName(identifyName);

File diff suppressed because it is too large
+ 1 - 1
src/main/webapp/WEB-INF/views/portal/technologyTrading/shopList.html