记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
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
董敬伟
liquidnet-bus-v1
Commits
fc792346
Commit
fc792346
authored
Aug 23, 2022
by
张国柄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
~api:商城短信验证码根据环境选择调用服务商;
parent
5dfdd114
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
GoblinSmsController.java
...uidnet/service/goblin/controller/GoblinSmsController.java
+3
-1
No files found.
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/controller/GoblinSmsController.java
View file @
fc792346
...
@@ -28,6 +28,7 @@ import org.springframework.web.bind.annotation.RestController;
...
@@ -28,6 +28,7 @@ import org.springframework.web.bind.annotation.RestController;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.Pattern
;
import
javax.validation.constraints.Pattern
;
import
java.util.Arrays
;
@ApiSupport
(
order
=
141000
)
@ApiSupport
(
order
=
141000
)
@Api
(
tags
=
"商城:短信API"
)
@Api
(
tags
=
"商城:短信API"
)
...
@@ -57,7 +58,8 @@ public class GoblinSmsController {
...
@@ -57,7 +58,8 @@ public class GoblinSmsController {
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
"140000"
));
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
"140000"
));
}
}
}
}
if
(
LnsEnum
.
ENV
.
prod
.
name
().
equals
(
env
.
getProperty
(
CurrentUtil
.
CK_ENV_ACTIVE
)))
{
// if (LnsEnum.ENV.prod.name().equals(env.getProperty(CurrentUtil.CK_ENV_ACTIVE))) {
if
(
Arrays
.
asList
(
LnsEnum
.
ENV
.
prod
.
name
(),
LnsEnum
.
ENV
.
test
.
name
()).
contains
(
env
.
getProperty
(
CurrentUtil
.
CK_ENV_ACTIVE
)))
{
ObjectNode
msgNode
=
JsonUtils
.
OM
().
createObjectNode
();
ObjectNode
msgNode
=
JsonUtils
.
OM
().
createObjectNode
();
msgNode
.
put
(
"code"
,
smsCode
);
msgNode
.
put
(
"code"
,
smsCode
);
boolean
sendRst
=
smsProcessor
.
send
(
mobile
,
SmsEnum
.
ADSignName
.
M02
.
getVal
(),
SmsEnum
.
ADTemplate
.
SMS_221055862
.
name
(),
msgNode
.
toString
());
boolean
sendRst
=
smsProcessor
.
send
(
mobile
,
SmsEnum
.
ADSignName
.
M02
.
getVal
(),
SmsEnum
.
ADTemplate
.
SMS_221055862
.
name
(),
msgNode
.
toString
());
...
...
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