| | |
| | | package com.pollex.pam.service; |
| | | |
| | | import com.pollex.pam.config.ApplicationProperties; |
| | | import com.pollex.pam.config.ApplicationProperties.Email; |
| | | import com.pollex.pam.config.ApplicationProperties.SMS; |
| | | import com.pollex.pam.service.dto.*; |
| | | import com.pollex.pam.service.util.HttpRequestUtil; |
| | |
| | | @Autowired |
| | | ApplicationProperties applicationProperties; |
| | | |
| | | public void sendMsgBySMS(String subject, String toMobile, String content) throws SendSMSFailException{ |
| | | public void sendMsgBySMS(String toMobile, String content) throws SendSMSFailException{ |
| | | SMS smsProperties = applicationProperties.getSms(); |
| | | |
| | | SendSMSRequest sendSMSRequest = new SendSMSRequest(); |
| | |
| | | sendSMSRequest.setSender(smsProperties.getSender()); |
| | | sendSMSRequest.setMsgTypeSet(smsProperties.getSmsType()); |
| | | sendSMSRequest.setSendTime(LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:00"))); |
| | | sendSMSRequest.setSubject(subject); |
| | | sendSMSRequest.setSubject(""); |
| | | sendSMSRequest.setActivityId(""); |
| | | |
| | | SMSDetail smsDetail = new SMSDetail(); |