Commit 1469b30162417e7365f5511878ae5bfd6d838722
1 parent
d8f6a79cd4
Exists in
master
and in
1 other branch
code update
Showing 2 changed files with 9 additions and 5 deletions
platform-data-api/src/main/java/com/lyms/platform/data/service/impl/SmsServiceImpl.java
View file @
1469b30
... | ... | @@ -2,10 +2,7 @@ |
2 | 2 | |
3 | 3 | import com.lyms.platform.biz.service.*; |
4 | 4 | import com.lyms.platform.common.enums.*; |
5 | -import com.lyms.platform.common.utils.DateUtil; | |
6 | -import com.lyms.platform.common.utils.JsonUtil; | |
7 | -import com.lyms.platform.common.utils.Lunar; | |
8 | -import com.lyms.platform.common.utils.StringUtils; | |
5 | +import com.lyms.platform.common.utils.*; | |
9 | 6 | import com.lyms.platform.data.pojo.HighScoreResult; |
10 | 7 | import com.lyms.platform.data.pojo.MessageContent; |
11 | 8 | import com.lyms.platform.data.pojo.MessageListRequest; |
... | ... | @@ -36,6 +33,9 @@ |
36 | 33 | @Service("smsService") |
37 | 34 | public class SmsServiceImpl implements SmsService{ |
38 | 35 | |
36 | + | |
37 | + public static final String SEND_TIME= PropertiesUtils.getPropertyValue("send_time"); | |
38 | + | |
39 | 39 | @Autowired |
40 | 40 | private SmsConfigService smsConfigService; |
41 | 41 | |
... | ... | @@ -2190,7 +2190,7 @@ |
2190 | 2190 | request.setObjType(serviceObj); |
2191 | 2191 | request.setPhone(phone); |
2192 | 2192 | //计划发送时间 |
2193 | - request.setPlanTime(DateUtil.getyyyy_MM_dd_hms(new Date())); | |
2193 | + request.setPlanTime(DateUtil.getyyyy_MM_dd(new Date())+ SEND_TIME +":00"); | |
2194 | 2194 | //短信商 |
2195 | 2195 | request.setServiceType(SmsProviderEnums.YM.getId()); |
2196 | 2196 | request.setSubTypeId(smsType); |