Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄嘉阳
/
iot-platform-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
0c79878f
authored
Oct 08, 2023
by
李小龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix: 平台移动端 用户名
parent
dd4fc70a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
server-common/src/main/java/com/makeit/utils/user/common/CommonUserUtil.java
server-common/src/main/java/com/makeit/utils/user/wechat/WechatUserInfo.java
server-common/src/main/java/com/makeit/utils/user/common/CommonUserUtil.java
View file @
0c79878f
...
...
@@ -21,7 +21,7 @@ public class CommonUserUtil {
WechatUserInfo
wechatUserInfo
=
ThreadLocalUserUtil
.
getWechatUser
();
if
(
wechatUserInfo
!=
null
)
{
return
new
CommonUserVO
(
wechatUserInfo
.
getId
(),
wechatUserInfo
.
get
N
ame
());
return
new
CommonUserVO
(
wechatUserInfo
.
getId
(),
wechatUserInfo
.
get
Usern
ame
());
}
SaasUserLoginVO
saasUser
=
ThreadLocalUserUtil
.
getSaasUser
();
...
...
@@ -54,7 +54,7 @@ public class CommonUserUtil {
if
(
StringUtils
.
isNotBlank
(
wechatToken
))
{
WechatUserInfo
wechatUserInfo
=
TokenUtil
.
getWechatUserDetail
(
wechatToken
);
if
(
wechatUserInfo
!=
null
)
{
return
new
CommonUserVO
(
wechatUserInfo
.
getId
(),
wechatUserInfo
.
get
N
ame
());
return
new
CommonUserVO
(
wechatUserInfo
.
getId
(),
wechatUserInfo
.
get
Usern
ame
());
}
}
...
...
server-common/src/main/java/com/makeit/utils/user/wechat/WechatUserInfo.java
View file @
0c79878f
...
...
@@ -25,7 +25,7 @@ public class WechatUserInfo implements Serializable {
private
String
openid
;
@ApiModelProperty
(
value
=
"姓名"
)
private
String
name
;
private
String
user
name
;
@ApiModelProperty
(
value
=
"手机号码"
)
private
String
phone
;
...
...
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