--- .gitignore
+++ .gitignore
... | ... | @@ -203,3 +203,4 @@ |
| 203 | 203 |
/mvnw.cmd |
| 204 | 204 |
/.gemini |
| 205 | 205 |
/.gemini.zip |
| 206 |
+/CLAUDE.md |
--- src/main/java/itn/let/kakao/kakaoComm/KakaoSendUtil.java
+++ src/main/java/itn/let/kakao/kakaoComm/KakaoSendUtil.java
... | ... | @@ -94,6 +94,9 @@ |
| 94 | 94 |
// log.info(" + templateDetail :: [{}]", templateDetail);
|
| 95 | 95 |
// templateDetail.getButtonList().forEach(t->log.info(" + ButtonList :: [{}]", t.toString()));
|
| 96 | 96 |
|
| 97 |
+ // API인지 확인하는 Boolean |
|
| 98 |
+ Boolean isApiData = "A".equals(kakaoVO.getSendKind()); |
|
| 99 |
+ |
|
| 97 | 100 |
Boolean hasContentReplacement = this.replBooleanStrChecker(templateContent); |
| 98 | 101 |
Boolean hasTitleReplacement = this.replBooleanStrChecker(templateTitle); |
| 99 | 102 |
Boolean hasButtonReplacement = this.needsButtonReplacement(templateDetail.getButtonList()); |
... | ... | @@ -153,12 +156,19 @@ |
| 153 | 156 |
/** @Step1-3: 템플릿 치환데이터 설정 */ |
| 154 | 157 |
String templateContentTemp = templateContent; |
| 155 | 158 |
String templateTitleTemp = templateTitle; |
| 156 |
- if (hasContentReplacement) {
|
|
| 157 |
- templateContentTemp = mjonCommon.ATReplaceTemplateVariables(templateContent, variables); |
|
| 158 |
- if(hasTitleReplacement) {
|
|
| 159 |
- templateTitleTemp = mjonCommon.ATReplaceTemplateVariables(templateTitle, variables); |
|
| 159 |
+ |
|
| 160 |
+ if(!isApiData) {
|
|
| 161 |
+ if (hasContentReplacement) {
|
|
| 162 |
+ templateContentTemp = mjonCommon.ATReplaceTemplateVariables(templateContent, variables); |
|
| 163 |
+ if(hasTitleReplacement) {
|
|
| 164 |
+ templateTitleTemp = mjonCommon.ATReplaceTemplateVariables(templateTitle, variables); |
|
| 165 |
+ } |
|
| 160 | 166 |
} |
| 167 |
+ }else {
|
|
| 168 |
+ |
|
| 161 | 169 |
} |
| 170 |
+ |
|
| 171 |
+ |
|
| 162 | 172 |
/** @버튼 치환 */ // 버튼 리스트가 있으면 치환 수행, 항상 sendVO에 설정 |
| 163 | 173 |
List<KakaoButtonVO> buttonList = templateDetail.getButtonList(); |
| 164 | 174 |
if(hasButtonReplacement) {
|
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?