Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
poc-api
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
poc
poc-api
Commits
4dbdd27c
Commit
4dbdd27c
authored
Nov 27, 2024
by
alex yao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 个人简介长度限制
parent
1b122dcb
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
3 deletions
+9
-3
BizMemberInfoServiceImpl.java
...n/com/poc/user/service/impl/BizMemberInfoServiceImpl.java
+3
-0
exception.properties
...in/resources/framemax-config/i18n/en/exception.properties
+2
-1
exception.properties
...resources/framemax-config/i18n/zh_cn/exception.properties
+2
-1
exception.properties
...resources/framemax-config/i18n/zh_tw/exception.properties
+2
-1
No files found.
src/main/java/cn/com/poc/user/service/impl/BizMemberInfoServiceImpl.java
View file @
4dbdd27c
...
@@ -104,6 +104,9 @@ public class BizMemberInfoServiceImpl extends BaseServiceImpl
...
@@ -104,6 +104,9 @@ public class BizMemberInfoServiceImpl extends BaseServiceImpl
bizMemberInfoModel
.
setEmail
(
memberInfoEntity
.
getEmail
());
bizMemberInfoModel
.
setEmail
(
memberInfoEntity
.
getEmail
());
}
}
if
(
StringUtils
.
isNotBlank
(
memberInfoEntity
.
getRemark
()))
{
if
(
StringUtils
.
isNotBlank
(
memberInfoEntity
.
getRemark
()))
{
if
(
memberInfoEntity
.
getNickName
().
length
()
>
200
)
{
throw
new
I18nMessageException
(
"exception/remark.max.len"
);
}
bizMemberInfoModel
.
setRemark
(
memberInfoEntity
.
getRemark
());
bizMemberInfoModel
.
setRemark
(
memberInfoEntity
.
getRemark
());
}
}
BizMemberInfoModel
saveModel
=
this
.
repository
.
save
(
bizMemberInfoModel
);
BizMemberInfoModel
saveModel
=
this
.
repository
.
save
(
bizMemberInfoModel
);
...
...
src/main/resources/framemax-config/i18n/en/exception.properties
View file @
4dbdd27c
...
@@ -76,3 +76,4 @@ file.load.error=File loading failure
...
@@ -76,3 +76,4 @@ file.load.error=File loading failure
content.cannot.null
=
Content can not be null
content.cannot.null
=
Content can not be null
arg.cannot.null
=
Arg can not be null
arg.cannot.null
=
Arg can not be null
nickName.max.len
=
Overnickname
nickName.max.len
=
Overnickname
remark.max.len
=
Remark content too long
\ No newline at end of file
src/main/resources/framemax-config/i18n/zh_cn/exception.properties
View file @
4dbdd27c
...
@@ -76,3 +76,4 @@ file.load.error=\u6587\u4EF6\u52A0\u8F7D\u5931\u8D25
...
@@ -76,3 +76,4 @@ file.load.error=\u6587\u4EF6\u52A0\u8F7D\u5931\u8D25
content.cannot.null
=
\u5185\u
5BB9
\u
4E0D
\u
80FD
\u
4E3A
\u
7A7A
content.cannot.null
=
\u5185\u
5BB9
\u
4E0D
\u
80FD
\u
4E3A
\u
7A7A
arg.cannot.null
=
\u
8BF7
\u
6C42
\u
53C2
\u6570\u
4E0D
\u
80FD
\u
4E3A
\u
7A7A
arg.cannot.null
=
\u
8BF7
\u
6C42
\u
53C2
\u6570\u
4E0D
\u
80FD
\u
4E3A
\u
7A7A
nickName.max.len
=
\u6635\u
79F0
\u
8FC7
\u
957F
nickName.max.len
=
\u6635\u
79F0
\u
8FC7
\u
957F
remark.max.len
=
\u5185\u
5BB9
\u
8FC7
\u
957F
\ No newline at end of file
src/main/resources/framemax-config/i18n/zh_tw/exception.properties
View file @
4dbdd27c
...
@@ -76,3 +76,4 @@ file.load.error=\u6587\u4EF6\u52A0\u8F09\u5931\u6557
...
@@ -76,3 +76,4 @@ file.load.error=\u6587\u4EF6\u52A0\u8F09\u5931\u6557
content.cannot.null
=
\u5185\u
5BB9
\u
4E0D
\u
80FD
\u7232\u
7A7A
content.cannot.null
=
\u5185\u
5BB9
\u
4E0D
\u
80FD
\u7232\u
7A7A
arg.cannot.null
=
\u
8ACB
\u
6C42
\u
53C3
\u6578\u
4E0D
\u
80FD
\u7232\u
7A7A
arg.cannot.null
=
\u
8ACB
\u
6C42
\u
53C3
\u6578\u
4E0D
\u
80FD
\u7232\u
7A7A
nickName.max.len
=
\u6635\u
7A31
\u
904E
\u9577
nickName.max.len
=
\u6635\u
7A31
\u
904E
\u9577
remark.max.len
=
\u5185\u
5BB9
\u
904E
\u9577
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment