Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
8302d289
Commit
8302d289
authored
Apr 25, 2023
by
曹盼盼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改登录接口
parent
5710fb1c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
SafetyServiceImpl.java
...s/boot/module/tzs/biz/service/impl/SafetyServiceImpl.java
+5
-4
No files found.
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/service/impl/SafetyServiceImpl.java
View file @
8302d289
...
@@ -114,10 +114,10 @@ public class SafetyServiceImpl implements ISafetyService {
...
@@ -114,10 +114,10 @@ public class SafetyServiceImpl implements ISafetyService {
// 1.判断是否需要进行短信验证码校验
// 1.判断是否需要进行短信验证码校验
boolean
isPassCheck
=
!
param
.
getIsNeedVerify
()
boolean
isPassCheck
=
!
param
.
getIsNeedVerify
()
||
(
"dev"
.
equals
(
loginEnvironment
)
&&
"666666"
.
equals
(
param
.
getVerifyCode
()));
||
(
"dev"
.
equals
(
loginEnvironment
)
&&
"666666"
.
equals
(
param
.
getVerifyCode
()));
/*
isPassCheck = this.smsVerifyCodeCheck(param.getIsNeedVerify(), param.getVerifyCode(), phoneNo);
isPassCheck
=
this
.
smsVerifyCodeCheck
(
param
.
getIsNeedVerify
(),
param
.
getVerifyCode
(),
phoneNo
);
if
(!
isPassCheck
)
{
if
(!
isPassCheck
)
{
throw
new
CommonException
(
600001
,
"短信验证不通过"
);
throw
new
CommonException
(
600001
,
"短信验证不通过"
);
}
*/
}
// 2.校验是否已经注册过
// 2.校验是否已经注册过
List
<
RegUnitInfo
>
userList
=
regUnitInfoMapper
.
userData
(
phoneNo
);
List
<
RegUnitInfo
>
userList
=
regUnitInfoMapper
.
userData
(
phoneNo
);
...
@@ -136,7 +136,8 @@ public class SafetyServiceImpl implements ISafetyService {
...
@@ -136,7 +136,8 @@ public class SafetyServiceImpl implements ISafetyService {
RequestContext
.
setProduct
(
product
);
RequestContext
.
setProduct
(
product
);
RequestContext
.
setAppKey
(
appKey
);
RequestContext
.
setAppKey
(
appKey
);
try
{
try
{
mobileVerifyCodeResult
=
privilegeFeginService
.
mobileVerifyCode
(
model
);
// mobileVerifyCodeResult = privilegeFeginService.mobileVerifyCode(model);
mobileVerifyCodeResult
=
Privilege
.
authClient
.
mobileVerifyCode
(
model
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
...
@@ -160,7 +161,7 @@ public class SafetyServiceImpl implements ISafetyService {
...
@@ -160,7 +161,7 @@ public class SafetyServiceImpl implements ISafetyService {
// 设置userInfo信息
// 设置userInfo信息
RegUnitInfo
user
=
userList
.
get
(
0
);
RegUnitInfo
user
=
userList
.
get
(
0
);
result
.
put
(
"userInfo"
,
user
Info
);
result
.
put
(
"userInfo"
,
user
);
return
result
;
return
result
;
}
}
...
...
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