Commit 9329d170 authored by qinxunjia's avatar qinxunjia

添加注释

parent daa7b758
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;
}
} }
...@@ -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 # 短信报告
\ No newline at end of file pullReport: http://smssh1.253.com/msg/pull/report # 拉取短信报告
\ No newline at end of file
...@@ -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 # 拉取短信报告
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment