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
e4861e79
Commit
e4861e79
authored
Mar 29, 2017
by
lee_mingzhu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改短信认证,不管用户短信认证是否通过都发送确认短信消息到短信中心
parent
69f20bc5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
SmsServiceImpl.java
...a/cn/quantgroup/xyqb/service/sms/impl/SmsServiceImpl.java
+10
-10
No files found.
src/main/java/cn/quantgroup/xyqb/service/sms/impl/SmsServiceImpl.java
View file @
e4861e79
...
@@ -98,17 +98,17 @@ public class SmsServiceImpl implements ISmsService {
...
@@ -98,17 +98,17 @@ public class SmsServiceImpl implements ISmsService {
private
boolean
confirmSms
(
String
smsVerificationCode
,
String
unqiueId
,
String
code
)
{
private
boolean
confirmSms
(
String
smsVerificationCode
,
String
unqiueId
,
String
code
)
{
if
(
StringUtils
.
equals
(
code
,
smsVerificationCode
))
{
try
{
try
{
//smsSender.confirmSmsResult("1", unqiueId);
MsgParams
message
=
new
MsgParams
(
Collections
.
singletonList
(
2
),
unqiueId
);
MsgParams
message
=
new
MsgParams
(
Collections
.
singletonList
(
2
),
unqiueId
);
MsgParams
messageVoice
=
new
MsgParams
(
Collections
.
singletonList
(
4
),
unqiueId
);
MsgParams
messageVoice
=
new
MsgParams
(
Collections
.
singletonList
(
4
),
unqiueId
);
getSmsSender
().
confirmMsg
(
message
);
getSmsSender
().
confirmMsg
(
message
);
getSmsSender
().
confirmMsg
(
messageVoice
);
getSmsSender
().
confirmMsg
(
messageVoice
);
//smsSender.confirmSmsResult("1", unqiueId);
LOGGER
.
info
(
"confirmMsg send success, uniqueId={}"
,
unqiueId
);
LOGGER
.
info
(
"confirmMsg send success, uniqueId={}"
,
unqiueId
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
LOGGER
.
info
(
"短信验证像短信中心确认失效"
);
LOGGER
.
info
(
"短信验证像短信中心确认失效"
);
}
}
if
(
StringUtils
.
equals
(
code
,
smsVerificationCode
))
{
return
true
;
return
true
;
}
}
return
false
;
return
false
;
...
...
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