알림톡 api 진행중
This commit is contained in:
parent
9bb130f3df
commit
ce5f79fa34
1
.gitignore
vendored
1
.gitignore
vendored
@ -203,3 +203,4 @@ rebel.xml
|
|||||||
/mvnw.cmd
|
/mvnw.cmd
|
||||||
/.gemini
|
/.gemini
|
||||||
/.gemini.zip
|
/.gemini.zip
|
||||||
|
/CLAUDE.md
|
||||||
|
|||||||
@ -94,6 +94,9 @@ public class KakaoSendUtil {
|
|||||||
// log.info(" + templateDetail :: [{}]", templateDetail);
|
// log.info(" + templateDetail :: [{}]", templateDetail);
|
||||||
// templateDetail.getButtonList().forEach(t->log.info(" + ButtonList :: [{}]", t.toString()));
|
// templateDetail.getButtonList().forEach(t->log.info(" + ButtonList :: [{}]", t.toString()));
|
||||||
|
|
||||||
|
// API인지 확인하는 Boolean
|
||||||
|
Boolean isApiData = "A".equals(kakaoVO.getSendKind());
|
||||||
|
|
||||||
Boolean hasContentReplacement = this.replBooleanStrChecker(templateContent);
|
Boolean hasContentReplacement = this.replBooleanStrChecker(templateContent);
|
||||||
Boolean hasTitleReplacement = this.replBooleanStrChecker(templateTitle);
|
Boolean hasTitleReplacement = this.replBooleanStrChecker(templateTitle);
|
||||||
Boolean hasButtonReplacement = this.needsButtonReplacement(templateDetail.getButtonList());
|
Boolean hasButtonReplacement = this.needsButtonReplacement(templateDetail.getButtonList());
|
||||||
@ -153,12 +156,19 @@ public class KakaoSendUtil {
|
|||||||
/** @Step1-3: 템플릿 치환데이터 설정 */
|
/** @Step1-3: 템플릿 치환데이터 설정 */
|
||||||
String templateContentTemp = templateContent;
|
String templateContentTemp = templateContent;
|
||||||
String templateTitleTemp = templateTitle;
|
String templateTitleTemp = templateTitle;
|
||||||
if (hasContentReplacement) {
|
|
||||||
templateContentTemp = mjonCommon.ATReplaceTemplateVariables(templateContent, variables);
|
if(!isApiData) {
|
||||||
if(hasTitleReplacement) {
|
if (hasContentReplacement) {
|
||||||
templateTitleTemp = mjonCommon.ATReplaceTemplateVariables(templateTitle, variables);
|
templateContentTemp = mjonCommon.ATReplaceTemplateVariables(templateContent, variables);
|
||||||
|
if(hasTitleReplacement) {
|
||||||
|
templateTitleTemp = mjonCommon.ATReplaceTemplateVariables(templateTitle, variables);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
}else {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/** @버튼 치환 */ // 버튼 리스트가 있으면 치환 수행, 항상 sendVO에 설정
|
/** @버튼 치환 */ // 버튼 리스트가 있으면 치환 수행, 항상 sendVO에 설정
|
||||||
List<KakaoButtonVO> buttonList = templateDetail.getButtonList();
|
List<KakaoButtonVO> buttonList = templateDetail.getButtonList();
|
||||||
if(hasButtonReplacement) {
|
if(hasButtonReplacement) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user