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
31a8bc05
Commit
31a8bc05
authored
May 12, 2023
by
曹盼盼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
bc41360d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
SafetyServiceImpl.java
...s/boot/module/tzs/biz/service/impl/SafetyServiceImpl.java
+5
-5
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 @
31a8bc05
...
...
@@ -112,14 +112,14 @@ public class SafetyServiceImpl implements ISafetyService {
// 0.解析手机号
String
phoneNo
=
this
.
parsePhoneNo
(
param
);
// 1.判断是否需要进行短信验证码校验
boolean
isPassCheck
=
!
param
.
getIsNeedVerify
()
/*
boolean isPassCheck = !param.getIsNeedVerify()
|| ("dev".equals(loginEnvironment) && "666666".equals(param.getVerifyCode()));
isPassCheck = this.smsVerifyCodeCheck(param.getIsNeedVerify(), param.getVerifyCode(), phoneNo);
if (!isPassCheck) {
throw new CommonException(600001, "短信验证不通过");
}
}
*/
// 2.校验
是
否已经注册过
// 2.校验
手机号
否已经注册过
List
<
RegUnitInfo
>
userList
=
regUnitInfoMapper
.
userData
(
phoneNo
);
if
(
CollectionUtils
.
isEmpty
(
userList
))
{
// 没注册过,进行返回
...
...
@@ -193,11 +193,11 @@ public class SafetyServiceImpl implements ISafetyService {
}
VerifyCodeAuthModel
model
=
new
VerifyCodeAuthModel
();
model
.
setLoginId
(
phoneNo
);
if
(!
param
.
getIsNeedVerify
()
||
(
"dev"
.
equals
(
loginEnvironment
)
&&
"666666"
.
equals
(
param
.
getVerifyCode
())))
{
/*
if (!param.getIsNeedVerify() || ("dev".equals(loginEnvironment) && "666666".equals(param.getVerifyCode()))) {
model.setVerifyCode(DesUtil.encode(phoneNo, phoneNo));
} else {
model.setVerifyCode(param.getVerifyCode());
}
}
*/
FeignClientResult
<
Map
<
String
,
String
>>
mobileVerifyCodeResult
=
new
FeignClientResult
<>();
RequestContext
.
setToken
(
"token"
);
RequestContext
.
setProduct
(
product
);
...
...
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