260922_03_ENH: dev, local에서는 kon, kiwi 매핑테이블에서 정보가 생성되게 하면 안되기 때문에 enabled: false 조치
This commit is contained in:
@@ -22,10 +22,13 @@ public class ContactSurveyApiClient {
|
||||
|
||||
private final ExternalApiClient externalApiClient = new ExternalApiClient();
|
||||
|
||||
@Value("${kri.api-url.kon-contact-survey}")
|
||||
@Value("${kri.contact-survey.enabled:false}")
|
||||
private boolean enabled;
|
||||
|
||||
@Value("${kri.contact-survey.kon-url}")
|
||||
private String konBaseUrl;
|
||||
|
||||
@Value("${kri.api-url.kiwi-contact-survey}")
|
||||
@Value("${kri.contact-survey.kiwi-url}")
|
||||
private String kiwiBaseUrl;
|
||||
|
||||
@Value("${kri.auth.apikey.header-name:X-API-Key}")
|
||||
@@ -48,6 +51,9 @@ public class ContactSurveyApiClient {
|
||||
String pkey,
|
||||
Long psidx
|
||||
) {
|
||||
if (!enabled) {
|
||||
return;
|
||||
}
|
||||
validate(pkey, psidx);
|
||||
|
||||
String url = baseUrl(surveyType) + CONTACT_SURVEY_PATH;
|
||||
|
||||
@@ -3,8 +3,11 @@ kri:
|
||||
intranet-extension: https://intranet-ext.kric.com/api/v1
|
||||
noti-hub: https://noti-hub.kric.com/api/v1
|
||||
short-url: https://short-url.kric.com/api/v1
|
||||
kon-contact-survey: https://kon.kric.com
|
||||
kiwi-contact-survey: https://kon.kiwisurvey.kr
|
||||
|
||||
contact-survey:
|
||||
enabled: false
|
||||
kon-url: https://kon.kric.com
|
||||
kiwi-url: https://kon.kiwisurvey.kr
|
||||
|
||||
spring:
|
||||
datasource:
|
||||
|
||||
@@ -5,10 +5,11 @@ kri:
|
||||
#noti-hub: http://localhost:4011/api/v1
|
||||
noti-hub: https://noti-hub.kric.com/api/v1
|
||||
short-url: https://short-url.kric.com/api/v1
|
||||
kon-contact-survey: https://kon.kric.com
|
||||
kiwi-contact-survey: https://kon.kiwisurvey.kr
|
||||
#kon-contact-survey: http://localhost:8088
|
||||
#kiwi-contact-survey: http://localhost:8099
|
||||
|
||||
contact-survey:
|
||||
enabled: false
|
||||
kon-url: http://localhost:8088
|
||||
kiwi-url: http://localhost:8099
|
||||
|
||||
spring:
|
||||
datasource:
|
||||
|
||||
@@ -3,8 +3,11 @@ kri:
|
||||
intranet-extension: https://intranet-ext.kric.com/api/v1
|
||||
noti-hub: https://noti-hub.kric.com/api/v1
|
||||
short-url: https://short-url.kric.com/api/v1
|
||||
kon-contact-survey: https://kon.kric.com
|
||||
kiwi-contact-survey: https://kon.kiwisurvey.kr
|
||||
|
||||
contact-survey:
|
||||
enabled: true
|
||||
kon-url: https://kon.kric.com
|
||||
kiwi-url: https://kon.kiwisurvey.kr
|
||||
|
||||
spring:
|
||||
datasource:
|
||||
|
||||
Reference in New Issue
Block a user