Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xyqb-user2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
head_group
xyqb-user2
Commits
e699c3d7
Commit
e699c3d7
authored
Apr 06, 2022
by
李健华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
productLogin和wechatUserInfo获取手机号方式
parent
991fd783
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
ProductLoginEntity.java
...in/java/cn/quantgroup/xyqb/entity/ProductLoginEntity.java
+2
-2
WechatUserInfo.java
src/main/java/cn/quantgroup/xyqb/entity/WechatUserInfo.java
+9
-0
No files found.
src/main/java/cn/quantgroup/xyqb/entity/ProductLoginEntity.java
View file @
e699c3d7
...
...
@@ -99,7 +99,7 @@ public class ProductLoginEntity extends PartitionEntity implements Serializable
}
public
String
getPhoneNo
()
{
return
this
.
getEncryptedPhoneNo
();
return
getEncryptedPhoneNo
();
}
public
void
setPhoneNo
(
String
phoneNo
)
{
...
...
@@ -205,7 +205,7 @@ public class ProductLoginEntity extends PartitionEntity implements Serializable
}
public
String
getEncryptedPhoneNo
()
{
return
encryptedPhoneNo
==
null
?
phoneNo
:
encryptedPhoneNo
;
return
org
.
apache
.
commons
.
lang
.
StringUtils
.
isBlank
(
encryptedPhoneNo
)
?
phoneNo
:
encryptedPhoneNo
;
}
public
void
setEncryptedPhoneNo
(
String
encryptedPhoneNo
)
{
...
...
src/main/java/cn/quantgroup/xyqb/entity/WechatUserInfo.java
View file @
e699c3d7
...
...
@@ -3,6 +3,7 @@ package cn.quantgroup.xyqb.entity;
import
cn.quantgroup.xyqb.entity.converter.EncryptConverter
;
import
cn.quantgroup.xyqb.util.EmojiUtil
;
import
lombok.Data
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.beans.BeanUtils
;
import
javax.persistence.*
;
...
...
@@ -50,6 +51,14 @@ public class WechatUserInfo extends BaseEntity implements Serializable {
@Convert
(
converter
=
EncryptConverter
.
class
)
private
String
encryptedPhoneNo
;
public
String
getEncryptedPhoneNo
()
{
return
StringUtils
.
isBlank
(
encryptedPhoneNo
)
?
phoneNo
:
encryptedPhoneNo
;
}
public
String
getPhoneNo
()
{
return
StringUtils
.
isBlank
(
encryptedPhoneNo
)
?
phoneNo
:
encryptedPhoneNo
;
}
public
WechatUserInfo
convertEmoji
()
{
WechatUserInfo
wechatUserInfo
=
new
WechatUserInfo
();
...
...
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