--- src/main/java/itn/com/cmm/util/MsgSendUtils.java
+++ src/main/java/itn/com/cmm/util/MsgSendUtils.java
... | ... | @@ -289,6 +289,10 @@ |
| 289 | 289 |
smsSpamChkTxt = smsTxt.replaceAll(String.valueOf((char) 13), ""); |
| 290 | 290 |
} |
| 291 | 291 |
|
| 292 |
+ // 이미지 셋팅 |
|
| 293 |
+ setImagePathsForMsgSendVO(mjonMsgVO, sendVO); |
|
| 294 |
+ |
|
| 295 |
+ |
|
| 292 | 296 |
// == 치환 여부에 따라 처리 로직 분기 == |
| 293 | 297 |
// 치환 문자가 아닌 경우 |
| 294 | 298 |
if (!replaceYN) {
|
... | ... | @@ -298,7 +302,7 @@ |
| 298 | 302 |
hasPerformedSpamCheck = true; |
| 299 | 303 |
} |
| 300 | 304 |
if (!hasPerformedMsgType) {
|
| 301 |
- msgTypeResult = getMsgTypeWithByteValidation(sendVO, smsTxt); |
|
| 305 |
+ msgTypeResult = getMsgTypeWithByteValidation(sendVO, smsTxt); |
|
| 302 | 306 |
if ("INVALID".equals(msgTypeResult)) {
|
| 303 | 307 |
statusResponseSet(statusResponse, HttpStatus.BAD_REQUEST, "문자 치환 후 전송 문자 길이를 초과하였습니다."); |
| 304 | 308 |
return false; |
... | ... | @@ -344,8 +348,6 @@ |
| 344 | 348 |
sendVO.setSubject(mmsTitleTemp); |
| 345 | 349 |
} |
| 346 | 350 |
|
| 347 |
- // 이미지 셋팅 |
|
| 348 |
- setImagePathsForMsgSendVO(mjonMsgVO, sendVO); |
|
| 349 | 351 |
|
| 350 | 352 |
|
| 351 | 353 |
|
... | ... | @@ -923,7 +925,11 @@ |
| 923 | 925 |
* @return |
| 924 | 926 |
*/ |
| 925 | 927 |
public static String getMmsgSubject(String smsTxt, String msgKind) {
|
| 928 |
+ |
|
| 926 | 929 |
String mmsTitleTemp = ""; |
| 930 |
+ if(StringUtils.isEmpty(smsTxt)) {
|
|
| 931 |
+ return mmsTitleTemp; |
|
| 932 |
+ } |
|
| 927 | 933 |
// SMS 텍스트를 줄 단위로 나누기 |
| 928 | 934 |
String[] split = smsTxt.split("\n");
|
| 929 | 935 |
log.info(" : split.length :: [{}]", split.length);
|
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?