保誠-保戶業務員媒合平台
wayne
2021-12-17 e25f7f251e4d3962a804858206bc213ec0765460
[update] 調整sit與uat設定檔,並將測試接口permitAll出來

修改8個檔案
58 ■■■■■ 已變更過的檔案
pamapi/src/main/java/com/pollex/pam/config/SecurityConfiguration.java 1 ●●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
pamapi/src/main/java/com/pollex/pam/service/dto/SendMailResponse.java 14 ●●●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
pamapi/src/main/java/com/pollex/pam/service/dto/SendSMSResponse.java 10 ●●●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
pamapi/src/main/java/com/pollex/pam/web/rest/errors/SendEmailFailException.java 7 ●●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
pamapi/src/main/java/com/pollex/pam/web/rest/errors/SendSMSFailException.java 4 ●●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
pamapi/src/main/resources/config/application-dev.yml 6 ●●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
pamapi/src/main/resources/config/application-sit.yml 8 ●●●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
pamapi/src/main/resources/config/application-uat.yml 8 ●●●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
pamapi/src/main/java/com/pollex/pam/config/SecurityConfiguration.java
@@ -82,6 +82,7 @@
            .antMatchers("/api/register").permitAll()
            .antMatchers("/api/activate").permitAll()
            .antMatchers("/api/testLogin/**").permitAll()
            .antMatchers("/api/test/sendMsg/**").permitAll()
            .antMatchers("/api/otp/**").permitAll()
            .antMatchers("/api/login/validate/**").permitAll()
            .antMatchers("/api/eService/authenticate").permitAll()
pamapi/src/main/java/com/pollex/pam/service/dto/SendMailResponse.java
@@ -21,5 +21,19 @@
        public void setMessageStatus(String messageStatus) {
            this.messageStatus = messageStatus;
        }
        @Override
        public String toString() {
            return "Data{" +
                "messageStatus='" + messageStatus + '\'' +
                '}';
        }
    }
    @Override
    public String toString() {
        return "SendMailResponse{" +
            "data=" + data +
            '}';
    }
}
pamapi/src/main/java/com/pollex/pam/service/dto/SendSMSResponse.java
@@ -47,4 +47,14 @@
    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }
    @Override
    public String toString() {
        return "SendSMSResponse{" +
            "pKey='" + pKey + '\'' +
            ", returnCode='" + returnCode + '\'' +
            ", msgBatchNo='" + msgBatchNo + '\'' +
            ", errorMsg='" + errorMsg + '\'' +
            '}';
    }
}
pamapi/src/main/java/com/pollex/pam/web/rest/errors/SendEmailFailException.java
@@ -1,8 +1,11 @@
package com.pollex.pam.web.rest.errors;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
@ResponseStatus(code = HttpStatus.INTERNAL_SERVER_ERROR, reason = "send email failed")
public class SendEmailFailException extends RuntimeException {
    public SendEmailFailException() {
    }
    public SendEmailFailException() {}
    public SendEmailFailException(String message) {
        super(message);
    }
pamapi/src/main/java/com/pollex/pam/web/rest/errors/SendSMSFailException.java
@@ -1,5 +1,9 @@
package com.pollex.pam.web.rest.errors;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
@ResponseStatus(code = HttpStatus.INTERNAL_SERVER_ERROR, reason = "send email failed")
public class SendSMSFailException extends RuntimeException{
    public SendSMSFailException(){}
    public SendSMSFailException(String message) {
pamapi/src/main/resources/config/application-dev.yml
@@ -120,10 +120,10 @@
  e-service-login-func: ValidateUsrLogin
  e-service-login-sys: epos
  sms:
    url: https://vtwlifewinbo66.pru.intranet.asia/MesgQueueMgmnt/rest/smsSendMsgResource
    url: https://localhost:8081/testSMS
    source-code: ePos
    sender: POS
    sms-type: 0017
    sms-type: '0017'
  email:
    url: https://vtwlifeopensysuat.pru.intranet.asia/tsgw/mq/mqSendMail
    url: https://localhost:8081/testEmail
    function-id: epos
pamapi/src/main/resources/config/application-sit.yml
@@ -117,3 +117,11 @@
  e-service-login-url: https://eserviceuat.pcalife.com.tw/sso/chatbotValidate
  e-service-login-func: ValidateUsrLogin
  e-service-login-sys: epos
  sms:
    url: https://vtwlifewinbo66.pru.intranet.asia/MesgQueueMgmnt/rest/smsSendMsgResource
    source-code: ePos
    sender: POS
    sms-type: '0017'
  email:
    url: https://vtwlifeopensysuat.pru.intranet.asia/tsgw/mq/mqSendMail
    function-id: epos
pamapi/src/main/resources/config/application-uat.yml
@@ -117,3 +117,11 @@
  e-service-login-url: https://eserviceuat.pcalife.com.tw/sso/chatbotValidate
  e-service-login-func: ValidateUsrLogin
  e-service-login-sys: epos
  sms:
    url: https://vtwlifewinbo66.pru.intranet.asia/MesgQueueMgmnt/rest/smsSendMsgResource
    source-code: ePos
    sender: POS
    sms-type: '0017'
  email:
    url: https://vtwlifeopensysuat.pru.intranet.asia/tsgw/mq/mqSendMail
    function-id: epos