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
c282fa86
Commit
c282fa86
authored
Nov 27, 2024
by
alex yao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 昵称过长提醒
parent
10f52bd6
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
3 deletions
+10
-3
BizMemberInfoRestImpl.java
...java/cn/com/poc/user/rest/impl/BizMemberInfoRestImpl.java
+1
-0
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/rest/impl/BizMemberInfoRestImpl.java
View file @
c282fa86
...
@@ -4,6 +4,7 @@ import javax.annotation.Resource;
...
@@ -4,6 +4,7 @@ import javax.annotation.Resource;
import
cn.com.poc.common.utils.Assert
;
import
cn.com.poc.common.utils.Assert
;
import
cn.com.poc.common.utils.BlContext
;
import
cn.com.poc.common.utils.BlContext
;
import
cn.com.poc.common.utils.StringUtils
;
import
cn.com.poc.support.security.oauth.constants.OauthConstants
;
import
cn.com.poc.support.security.oauth.constants.OauthConstants
;
import
cn.com.poc.support.security.oauth.entity.UserBaseEntity
;
import
cn.com.poc.support.security.oauth.entity.UserBaseEntity
;
import
cn.com.poc.user.convert.MemberInfoConvert
;
import
cn.com.poc.user.convert.MemberInfoConvert
;
...
...
src/main/java/cn/com/poc/user/service/impl/BizMemberInfoServiceImpl.java
View file @
c282fa86
...
@@ -89,6 +89,9 @@ public class BizMemberInfoServiceImpl extends BaseServiceImpl
...
@@ -89,6 +89,9 @@ public class BizMemberInfoServiceImpl extends BaseServiceImpl
Assert
.
notNull
(
memberInfoEntity
.
getMemberId
());
Assert
.
notNull
(
memberInfoEntity
.
getMemberId
());
BizMemberInfoModel
bizMemberInfoModel
=
repository
.
get
(
memberInfoEntity
.
getMemberId
());
BizMemberInfoModel
bizMemberInfoModel
=
repository
.
get
(
memberInfoEntity
.
getMemberId
());
if
(
StringUtils
.
isNotBlank
(
memberInfoEntity
.
getNickName
()))
{
if
(
StringUtils
.
isNotBlank
(
memberInfoEntity
.
getNickName
()))
{
if
(
memberInfoEntity
.
getNickName
().
length
()
>
20
)
{
throw
new
I18nMessageException
(
"exception/nickName.max.len"
);
}
bizMemberInfoModel
.
setNickName
(
memberInfoEntity
.
getNickName
());
bizMemberInfoModel
.
setNickName
(
memberInfoEntity
.
getNickName
());
}
}
if
(
StringUtils
.
isNotBlank
(
memberInfoEntity
.
getAvatarUrl
()))
{
if
(
StringUtils
.
isNotBlank
(
memberInfoEntity
.
getAvatarUrl
()))
{
...
...
src/main/resources/framemax-config/i18n/en/exception.properties
View file @
c282fa86
...
@@ -75,3 +75,4 @@ email.is.exist=The email already exists
...
@@ -75,3 +75,4 @@ email.is.exist=The email already exists
file.load.error
=
File loading failure
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
\ No newline at end of file
src/main/resources/framemax-config/i18n/zh_cn/exception.properties
View file @
c282fa86
...
@@ -75,3 +75,4 @@ email.is.exist=\u8BE5\u90AE\u7BB1\u5DF2\u5B58\u5728
...
@@ -75,3 +75,4 @@ email.is.exist=\u8BE5\u90AE\u7BB1\u5DF2\u5B58\u5728
file.load.error
=
\u6587\u
4EF6
\u
52A0
\u
8F7D
\u5931\u
8D25
file.load.error
=
\u6587\u
4EF6
\u
52A0
\u
8F7D
\u5931\u
8D25
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
\ No newline at end of file
src/main/resources/framemax-config/i18n/zh_tw/exception.properties
View file @
c282fa86
...
@@ -75,3 +75,4 @@ email.is.exist=\u8A72\u90F5\u7BB1\u5DF2\u5B58\u5728
...
@@ -75,3 +75,4 @@ email.is.exist=\u8A72\u90F5\u7BB1\u5DF2\u5B58\u5728
file.load.error
=
\u6587\u
4EF6
\u
52A0
\u
8F09
\u5931\u6557
file.load.error
=
\u6587\u
4EF6
\u
52A0
\u
8F09
\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
\ 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