Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dmhub-plugin
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
qinxunjia
dmhub-plugin
Commits
9329d170
Commit
9329d170
authored
Apr 21, 2020
by
qinxunjia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加注释
parent
daa7b758
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
26 deletions
+30
-26
SMSConfig.java
src/main/java/com/jz/sms/config/SMSConfig.java
+15
-13
application-prod.yml
src/main/resources/application-prod.yml
+8
-7
application-test.yml
src/main/resources/application-test.yml
+7
-6
No files found.
src/main/java/com/jz/sms/config/SMSConfig.java
View file @
9329d170
package
com
.
hsht
.
common
.
config
;
package
com
.
jz
.
sms
.
config
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
/**
/**
* 系统配置
* 短信参数配置
*
* @author shuliangxing
* @date 2018/6/11 10:47
*/
*/
@Component
@Component
public
class
SMSConfig
{
public
class
SMSConfig
{
// notificationAccount: N0767543
// notificationPassword: N0767543
//
// marketingAccount: M7603731
// marketingPassword: N0767543
// sendFixed: http://smssh1.253.com/msg/send/json #短信下发接口
// sendVariable: http://smssh1.253.com/msg/variable/json #变量短信下发接口
// reportUrl: http://test.9z.com/msg/report # 短信报告
// 通知类短信账号
public
static
String
notificationAccount
;
public
static
String
notificationAccount
;
// 通知类短信密码
public
static
String
notificationPassword
;
public
static
String
notificationPassword
;
// 营销类短信账号
public
static
String
marketingAccount
;
public
static
String
marketingAccount
;
// 营销类短信密码
public
static
String
marketingPassword
;
public
static
String
marketingPassword
;
// 固定内容发送接口地址
public
static
String
sendFixed
;
public
static
String
sendFixed
;
// 变量短信发送接口地址
public
static
String
sendVariable
;
public
static
String
sendVariable
;
// 系统接口回执报告地址
public
static
String
reportUrl
;
public
static
String
reportUrl
;
// 拉取短信报告地址
public
static
String
pullReport
;
@Value
(
"${system.config.lanchuan.notificationAccount}"
)
@Value
(
"${system.config.lanchuan.notificationAccount}"
)
...
@@ -65,4 +63,8 @@ public class SMSConfig {
...
@@ -65,4 +63,8 @@ public class SMSConfig {
SMSConfig
.
reportUrl
=
reportUrl
;
SMSConfig
.
reportUrl
=
reportUrl
;
}
}
@Value
(
"${system.config.lanchuan.pullReport}"
)
public
static
void
setPullReport
(
String
pullReport
)
{
SMSConfig
.
pullReport
=
pullReport
;
}
}
}
src/main/resources/application-prod.yml
View file @
9329d170
...
@@ -6,11 +6,12 @@ server:
...
@@ -6,11 +6,12 @@ server:
system
:
system
:
config
:
config
:
chuanlan
:
chuanlan
:
notificationAccount
:
N0767543
notificationAccount
:
N0767543
# 通知类短信账号
notificationPassword
:
N0767543
notificationPassword
:
N0767543
# 通知类短信密码
marketingAccount
:
M7603731
marketingAccount
:
M7603731
# 营销类短信账号
marketingPassword
:
N0767543
marketingPassword
:
N0767543
# 营销类短信密码
sendFixed
:
http://smssh1.253.com/msg/send/json
#短信下发接口
sendFixed
:
http://smssh1.253.com/msg/send/json
#
短信下发接口
sendVariable
:
http://smssh1.253.com/msg/variable/json
#变量短信下发接口
sendVariable
:
http://smssh1.253.com/msg/variable/json
#
变量短信下发接口
reportUrl
:
http://test.9z.com/msg/report
# 短信报告
reportUrl
:
http://test.9z.com/msg/report
# 短信报告
pullReport
:
http://smssh1.253.com/msg/pull/report
# 拉取短信报告
\ No newline at end of file
src/main/resources/application-test.yml
View file @
9329d170
...
@@ -7,12 +7,13 @@ server:
...
@@ -7,12 +7,13 @@ server:
system
:
system
:
config
:
config
:
chuanlan
:
chuanlan
:
notificationAccount
:
N0767543
notificationAccount
:
N0767543
# 通知类短信账号
notificationPassword
:
N0767543
notificationPassword
:
N0767543
# 通知类短信密码
marketingAccount
:
M7603731
marketingAccount
:
M7603731
# 营销类短信账号
marketingPassword
:
N0767543
marketingPassword
:
N0767543
# 营销类短信密码
sendFixed
:
http://smssh1.253.com/msg/send/json
#短信下发接口
sendFixed
:
http://smssh1.253.com/msg/send/json
#
短信下发接口
sendVariable
:
http://smssh1.253.com/msg/variable/json
#变量短信下发接口
sendVariable
:
http://smssh1.253.com/msg/variable/json
#
变量短信下发接口
reportUrl
:
http://test.9z.com/msg/report
# 短信报告
reportUrl
:
http://test.9z.com/msg/report
# 短信报告
pullReport
:
http://smssh1.253.com/msg/pull/report
# 拉取短信报告
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