Commit 4dbdd27c authored by alex yao's avatar alex yao

fix: 个人简介长度限制

parent 1b122dcb
......@@ -104,6 +104,9 @@ public class BizMemberInfoServiceImpl extends BaseServiceImpl
bizMemberInfoModel.setEmail(memberInfoEntity.getEmail());
}
if (StringUtils.isNotBlank(memberInfoEntity.getRemark())) {
if (memberInfoEntity.getNickName().length() > 200) {
throw new I18nMessageException("exception/remark.max.len");
}
bizMemberInfoModel.setRemark(memberInfoEntity.getRemark());
}
BizMemberInfoModel saveModel = this.repository.save(bizMemberInfoModel);
......
......@@ -76,3 +76,4 @@ file.load.error=File loading failure
content.cannot.null=Content can not be null
arg.cannot.null=Arg can not be null
nickName.max.len=Overnickname
remark.max.len=Remark content too long
\ No newline at end of file
......@@ -76,3 +76,4 @@ file.load.error=\u6587\u4EF6\u52A0\u8F7D\u5931\u8D25
content.cannot.null=\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A
arg.cannot.null=\u8BF7\u6C42\u53C2\u6570\u4E0D\u80FD\u4E3A\u7A7A
nickName.max.len=\u6635\u79F0\u8FC7\u957F
remark.max.len=\u5185\u5BB9\u8FC7\u957F
\ No newline at end of file
......@@ -76,3 +76,4 @@ file.load.error=\u6587\u4EF6\u52A0\u8F09\u5931\u6557
content.cannot.null=\u5185\u5BB9\u4E0D\u80FD\u7232\u7A7A
arg.cannot.null=\u8ACB\u6C42\u53C3\u6578\u4E0D\u80FD\u7232\u7A7A
nickName.max.len=\u6635\u7A31\u904E\u9577
remark.max.len=\u5185\u5BB9\u904E\u9577
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment