Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1-office-web-sit
Overview
Overview
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
吴迪
gs1-office-web-sit
Commits
439087c8
Commit
439087c8
authored
Nov 27, 2022
by
吴迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改手机号
parent
3b74723c
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
17 deletions
+12
-17
MemberController.java
...io/office/modules/manage/controller/MemberController.java
+3
-3
TycpdmFirmController.java
...ffice/modules/manage/controller/TycpdmFirmController.java
+0
-0
MemberServiceImpl.java
...office/modules/manage/service/impl/MemberServiceImpl.java
+7
-5
TimescodeRegiServiceImpl.java
...modules/manage/service/impl/TimescodeRegiServiceImpl.java
+2
-9
No files found.
src/main/java/io/office/modules/manage/controller/MemberController.java
View file @
439087c8
...
@@ -94,10 +94,10 @@ public class MemberController extends AbstractController {
...
@@ -94,10 +94,10 @@ public class MemberController extends AbstractController {
// @RequiresPermissions("manage:member:info")
// @RequiresPermissions("manage:member:info")
public
R
info
(){
public
R
info
(){
Long
memberUserId
=
getMemberUserId
();
Long
memberUserId
=
getMemberUserId
();
/*
QueryWrapper<MemberEntity> queryWrapper = new QueryWrapper<MemberEntity>();
QueryWrapper<MemberEntity> queryWrapper = new QueryWrapper<MemberEntity>();
queryWrapper
.
eq
(
"phone"
,
memberUserId
);
queryWrapper.eq("phone",memberUserId);
*/
MemberEntity
member
=
memberService
.
get
One
(
queryWrapper
);
MemberEntity
member
=
memberService
.
get
ById
(
memberUserId
);
return
R
.
ok
().
put
(
"data"
,
member
);
return
R
.
ok
().
put
(
"data"
,
member
);
}
}
...
...
src/main/java/io/office/modules/manage/controller/TycpdmFirmController.java
View file @
439087c8
This diff is collapsed.
Click to expand it.
src/main/java/io/office/modules/manage/service/impl/MemberServiceImpl.java
View file @
439087c8
...
@@ -161,10 +161,7 @@ public class MemberServiceImpl extends ServiceImpl<MemberDao, MemberEntity> impl
...
@@ -161,10 +161,7 @@ public class MemberServiceImpl extends ServiceImpl<MemberDao, MemberEntity> impl
if
(!
newPass
.
equals
(
affirmPass
))
{
if
(!
newPass
.
equals
(
affirmPass
))
{
throw
new
RRException
(
"两次密码信息不一致,请重新输入"
);
throw
new
RRException
(
"两次密码信息不一致,请重新输入"
);
}
}
//根据手机号修改
MemberEntity
memberEntity
=
memberDao
.
selectById
(
id
);
UpdateWrapper
<
MemberEntity
>
memberEntityUpdateWrapper
=
new
UpdateWrapper
<
MemberEntity
>();
memberEntityUpdateWrapper
.
eq
(
"phone"
,
id
);
MemberEntity
memberEntity
=
memberDao
.
selectOne
(
memberEntityUpdateWrapper
);
if
(
memberEntity
!=
null
)
{
if
(
memberEntity
!=
null
)
{
String
passData
=
memberEntity
.
getPass
();
String
passData
=
memberEntity
.
getPass
();
String
passMD5
=
MD5Util
.
md5Encrypt32Lower
(
oldPass
);
String
passMD5
=
MD5Util
.
md5Encrypt32Lower
(
oldPass
);
...
@@ -351,13 +348,18 @@ public class MemberServiceImpl extends ServiceImpl<MemberDao, MemberEntity> impl
...
@@ -351,13 +348,18 @@ public class MemberServiceImpl extends ServiceImpl<MemberDao, MemberEntity> impl
* @return
* @return
*/
*/
private
static
boolean
matchPhoneNumber
(
String
phoneNumber
)
{
private
static
boolean
matchPhoneNumber
(
String
phoneNumber
)
{
String
regex
=
"1[3
58
][0-9]{9}"
;
String
regex
=
"1[3
456789
][0-9]{9}"
;
if
(
phoneNumber
==
null
||
phoneNumber
.
length
()
<=
0
)
{
if
(
phoneNumber
==
null
||
phoneNumber
.
length
()
<=
0
)
{
return
false
;
return
false
;
}
}
return
Pattern
.
matches
(
regex
,
phoneNumber
);
return
Pattern
.
matches
(
regex
,
phoneNumber
);
}
}
public
static
void
main
(
String
[]
args
)
{
System
.
out
.
println
(
matchPhoneNumber
(
"17368588652"
));
}
@Override
@Override
public
String
getVerificationCode
(
Map
<
String
,
Object
>
params
,
HttpServletRequest
request
,
HttpServletResponse
response
)
{
public
String
getVerificationCode
(
Map
<
String
,
Object
>
params
,
HttpServletRequest
request
,
HttpServletResponse
response
)
{
//验证码随机6位数字(验证码)
//验证码随机6位数字(验证码)
...
...
src/main/java/io/office/modules/manage/service/impl/TimescodeRegiServiceImpl.java
View file @
439087c8
...
@@ -76,7 +76,7 @@ public class TimescodeRegiServiceImpl extends ServiceImpl<TimescodeRegiDao, Time
...
@@ -76,7 +76,7 @@ public class TimescodeRegiServiceImpl extends ServiceImpl<TimescodeRegiDao, Time
* @return
* @return
*/
*/
private
static
boolean
matchPhoneNumber
(
String
phoneNumber
)
{
private
static
boolean
matchPhoneNumber
(
String
phoneNumber
)
{
String
regex
=
"1[3
58
][0-9]{9}"
;
String
regex
=
"1[3
456789
][0-9]{9}"
;
if
(
phoneNumber
==
null
||
phoneNumber
.
length
()<=
0
){
if
(
phoneNumber
==
null
||
phoneNumber
.
length
()<=
0
){
return
false
;
return
false
;
}
}
...
@@ -84,14 +84,7 @@ public class TimescodeRegiServiceImpl extends ServiceImpl<TimescodeRegiDao, Time
...
@@ -84,14 +84,7 @@ public class TimescodeRegiServiceImpl extends ServiceImpl<TimescodeRegiDao, Time
}
}
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
long
l
=
System
.
currentTimeMillis
();
System
.
out
.
println
(
matchPhoneNumber
(
"17368588652"
));
try
{
Thread
.
sleep
(
3000
);
}
catch
(
InterruptedException
e
)
{
e
.
printStackTrace
();
}
long
l2
=
System
.
currentTimeMillis
();
System
.
out
.
println
((
l2
-
l
)/
1000
+
"秒"
);
}
}
@Override
@Override
...
...
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