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
a52c0053
Commit
a52c0053
authored
Dec 14, 2017
by
Java—红包—徐 然
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改短信部分
parent
408b53a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
SmsServiceImpl.java
...a/cn/quantgroup/xyqb/service/sms/impl/SmsServiceImpl.java
+5
-2
No files found.
src/main/java/cn/quantgroup/xyqb/service/sms/impl/SmsServiceImpl.java
View file @
a52c0053
...
@@ -17,6 +17,8 @@ import org.springframework.beans.factory.annotation.Value;
...
@@ -17,6 +17,8 @@ import org.springframework.beans.factory.annotation.Value;
import
org.springframework.data.redis.core.RedisTemplate
;
import
org.springframework.data.redis.core.RedisTemplate
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.PostConstruct
;
/**
/**
* @author mengfan.feng
* @author mengfan.feng
* @time 2015-07-25 18:47
* @time 2015-07-25 18:47
...
@@ -53,7 +55,7 @@ public class SmsServiceImpl implements ISmsService {
...
@@ -53,7 +55,7 @@ public class SmsServiceImpl implements ISmsService {
try
{
try
{
MsgParams
msgParams
=
MsgParams
msgParams
=
new
MsgParams
(
Collections
.
singletonList
(
2
),
phoneNo
,
"1"
,
"24"
,
Collections
.
emptyList
());
new
MsgParams
(
Collections
.
singletonList
(
2
),
phoneNo
,
"1"
,
"24"
,
Collections
.
emptyList
());
smsSender
.
sendMsg
(
msgParams
);
getSmsSender
()
.
sendMsg
(
msgParams
);
//smsSender.sendAndForget(new SendAndForgetMsg(Collections.emptyList(), "24", "1", phoneNo));
//smsSender.sendAndForget(new SendAndForgetMsg(Collections.emptyList(), "24", "1", phoneNo));
log
.
info
(
"注册完成,发送短信, phoneNo:{}"
,
phoneNo
);
log
.
info
(
"注册完成,发送短信, phoneNo:{}"
,
phoneNo
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
@@ -69,7 +71,7 @@ public class SmsServiceImpl implements ISmsService {
...
@@ -69,7 +71,7 @@ public class SmsServiceImpl implements ISmsService {
}
}
MsgParams
msgParams
=
new
MsgParams
(
Collections
.
singletonList
(
2
),
phoneNo
,
"1"
,
contentId
,
MsgParams
msgParams
=
new
MsgParams
(
Collections
.
singletonList
(
2
),
phoneNo
,
"1"
,
contentId
,
Collections
.
emptyList
());
Collections
.
emptyList
());
smsSender
.
sendMsg
(
msgParams
);
getSmsSender
()
.
sendMsg
(
msgParams
);
log
.
info
(
"注册完成,发送短信, phoneNo:{}"
,
phoneNo
);
log
.
info
(
"注册完成,发送短信, phoneNo:{}"
,
phoneNo
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
...
@@ -125,4 +127,5 @@ public class SmsServiceImpl implements ISmsService {
...
@@ -125,4 +127,5 @@ public class SmsServiceImpl implements ISmsService {
}
}
return
StringUtils
.
equals
(
code
,
smsVerificationCode
);
return
StringUtils
.
equals
(
code
,
smsVerificationCode
);
}
}
}
}
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