Commit 6b019bd763b1d22f3a7bb61a3e21f28de353c47d
1 parent
c5b5419a1a
Exists in
master
and in
6 other branches
update code
Showing 2 changed files with 3 additions and 2 deletions
platform-msg-generate/src/main/java/com/lyms/platform/msg/remote/AmsMessageService.java
View file @
6b019bd
| ... | ... | @@ -6,6 +6,7 @@ |
| 6 | 6 | import com.lyms.platform.common.utils.PropertiesUtils; |
| 7 | 7 | import com.lyms.platform.common.utils.StringUtils; |
| 8 | 8 | |
| 9 | +import com.lyms.platform.msg.constants.ConfigInterface; | |
| 9 | 10 | import com.lyms.platform.msg.model.MessageContent; |
| 10 | 11 | import com.lyms.platform.msg.model.MessageResponseEntity; |
| 11 | 12 | import com.lyms.platform.msg.model.Tag; |
| ... | ... | @@ -32,7 +33,7 @@ |
| 32 | 33 | */ |
| 33 | 34 | public class AmsMessageService { |
| 34 | 35 | private static final Logger logger = LoggerFactory.getLogger(AmsMessageService.class); |
| 35 | - public static final String AMS_URL= PropertiesUtils.getPropertyValue("ams_sms"); | |
| 36 | + public static final String AMS_URL= ConfigInterface.AMS_URL; | |
| 36 | 37 | private static final String AUTHORIZATION = "healthbaby2015"; |
| 37 | 38 | |
| 38 | 39 | /** |
platform-msg-generate/src/main/resources/config.properties
View file @
6b019bd
| ... | ... | @@ -4,7 +4,7 @@ |
| 4 | 4 | |
| 5 | 5 | #AMS地址 线上:http://data.api.healthbaby.com.cn/v1/messages 测试:http://data.api.stage.healthbaby.com.cn/v1/messages |
| 6 | 6 | #演示地址 https://stage-rp-data-api.healthbaby.com.cn/v1/messages |
| 7 | -ams_sms=http://data.api.healthbaby.com.cn/v1/messages | |
| 7 | +ams_url=http://data.api.healthbaby.com.cn/v1/messages | |
| 8 | 8 | |
| 9 | 9 | #短信当天发送时间 如16:00 |
| 10 | 10 | send_time=16:00 |