保誠-保戶業務員媒合平台
wayne
2021-12-24 49e325f40f9721521de975fdd5f3d37f6fe78852
[fix] 調整簡訊標題,需中文10字以內並為base64編碼

修改5個檔案
12 ■■■■ 已變更過的檔案
pamapi/src/main/java/com/pollex/pam/service/SendMsgService.java 4 ●●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
pamapi/src/main/resources/config/application-dev.yml 2 ●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
pamapi/src/main/resources/config/application-pollex.yml 2 ●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
pamapi/src/main/resources/config/application-sit.yml 2 ●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
pamapi/src/main/resources/config/application-uat.yml 2 ●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
pamapi/src/main/java/com/pollex/pam/service/SendMsgService.java
@@ -54,7 +54,7 @@
        sendSMSRequest.setSender(smsProperties.getSender());
        sendSMSRequest.setMsgTypeSet(smsProperties.getSmsType());
        sendSMSRequest.setSendTime(LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:00")));
        sendSMSRequest.setSubject(smsProperties.getSubject());
        sendSMSRequest.setSubject(encoder.encodeToString(smsProperties.getSubject().getBytes(StandardCharsets.UTF_8)));
        sendSMSRequest.setActivityId("");
        SMSDetail smsDetail = new SMSDetail();
@@ -117,7 +117,7 @@
            SendMailResponse sendMailResponse = new ObjectMapper().readValue(responseEntity.getBody(), SendMailResponse.class);
            log.debug("sendMailResponse = {}", sendMailResponse);
//            if(sendMailResponse == null || sendMailResponse.getData() == null || "ADDED".equalsIgnoreCase(sendMailResponse.getData().getMessageStatus())) {
//            if(sendMailResponse == null || sendMailResponse.getData() == null || !"ADDED".equalsIgnoreCase(sendMailResponse.getData().getMessageStatus())) {
//                throw new SendEmailFailException();
//            }
pamapi/src/main/resources/config/application-dev.yml
@@ -126,7 +126,7 @@
    source-code: ePos
    sender: POS
    sms-type: '0017'
    subject: 'testing sms subject'
    subject: '媒合平台通知'
  email:
    url: https://localhost:8081/testEmail
    function-id: epos
pamapi/src/main/resources/config/application-pollex.yml
@@ -124,7 +124,7 @@
    source-code: ePos
    sender: POS
    sms-type: '0017'
    subject: 'testing sms subject'
    subject: '媒合平台通知'
  email:
    url: https://localhost:8081/testEmail
    function-id: epos
pamapi/src/main/resources/config/application-sit.yml
@@ -124,7 +124,7 @@
    source-code: ePos
    sender: POS
    sms-type: '0017'
    subject: 'testing sms subject'
    subject: '媒合平台通知'
  email:
    url: https://vtwlifeopensysuat.pru.intranet.asia/tsgw/mq/mqSendMail
    function-id: epos
pamapi/src/main/resources/config/application-uat.yml
@@ -124,7 +124,7 @@
    source-code: ePos
    sender: POS
    sms-type: '0017'
    subject: 'testing sms subject'
    subject: '媒合平台通知'
  email:
    url: https://vtwlifeopensysuat.pru.intranet.asia/tsgw/mq/mqSendMail
    function-id: epos