|
|
@@ -151,6 +151,7 @@ public class SsgKakaoSender {
|
|
|
dm.setFkkosubject(ansPhase.getAnsTitle());
|
|
|
dm.setFtemplatekey(ansPhase.getKakaoCd());
|
|
|
dm.setFmessage(ansPhase.getAnsContent());
|
|
|
+ dm.setFcallback(callbackTelNo);
|
|
|
|
|
|
// kkoresendtype(재발송유형)이 "SMS"일 때만 kkoresendmsg(재발송메시지)에 값 설정
|
|
|
// "LMS"일 때는 fmessage(메시지본문) 값으로 발송되며 kkoresendmsg(재발송메시지)에는 값을 넣으면 안 된다.
|
|
|
@@ -160,13 +161,8 @@ public class SsgKakaoSender {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- dm.setFcallback(callbackTelNo);
|
|
|
-
|
|
|
// 버튼생성
|
|
|
if (StringUtils.isNotBlank(ansPhase.getButtonNm())) {
|
|
|
-
|
|
|
- ansPhase.setButtonUrl(GagaStringUtil.replace(this.mergeData(ansPhase.getButtonUrl(), replaceInfo), ">", ">"));
|
|
|
-
|
|
|
Button button = new Button();
|
|
|
button.setName(ansPhase.getButtonNm());
|
|
|
button.setType("WL");
|
|
|
@@ -178,6 +174,11 @@ public class SsgKakaoSender {
|
|
|
|
|
|
Gson gson = new Gson();
|
|
|
dm.setFkkobutton("\"button\":" + gson.toJson(buttonList));
|
|
|
+
|
|
|
+ // LMS도 SMS처럼 kkoresendmsg(재발송메시지)에 값을 설정해 처리할 수 있게 변경되었음.
|
|
|
+ if (dm.getFkkoresendtype().equals("LMS")) {
|
|
|
+ dm.setFkkoresendmsg(ansPhase.getAnsContent() + "\n" + ansPhase.getButtonNm() + "\n" + ansPhase.getButtonUrl());
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
// 카카오 알림톡 발송
|
|
|
@@ -245,6 +246,7 @@ public class SsgKakaoSender {
|
|
|
public AnswerPhase getAnswerPhase(Integer ansSq, GagaMap replaceInfo) {
|
|
|
AnswerPhase ansPhase = ansPhaseDao.getAnswerPhase(ansSq);
|
|
|
ansPhase.setAnsContent(GagaStringUtil.replace(this.mergeData(ansPhase.getAnsContent(), replaceInfo), ">", ">"));
|
|
|
+ ansPhase.setButtonUrl(GagaStringUtil.replace(this.mergeData(ansPhase.getButtonUrl(), replaceInfo), ">", ">"));
|
|
|
return ansPhase;
|
|
|
}
|
|
|
|