카카오 친구톡 발송 데이터 전달 테스트
This commit is contained in:
parent
6bbab397f3
commit
2627b4a1c7
@ -382,8 +382,6 @@ public class KakaoSendUtil {
|
||||
|
||||
}
|
||||
|
||||
System.out.println(tmpContents);
|
||||
|
||||
return tmpContents;
|
||||
}
|
||||
|
||||
@ -396,17 +394,14 @@ public class KakaoSendUtil {
|
||||
public String getKakaoFTCntRepToSpamFilter(List<String[]> varValList, List<String> resultSpamTxt, String contents) throws Exception {
|
||||
String spmFilterTxt = "";
|
||||
for(int i=0; i < varValList.size(); i++) {
|
||||
//String[] array = varValList.get(i)[0].split("¶");
|
||||
|
||||
String tmpContents = getKakaoFTCntReplace(varValList.get(i)[0], contents);
|
||||
System.out.println(tmpContents);
|
||||
|
||||
//입력 문장에 대해서 우회 문장 또는 특수 기호 입력 제거 등 문장 재구성 처리, 한글 자모음 분리 및 재조함도 함께 처리함.
|
||||
String resultParser = ComGetSpamStringParser.getSpamTextParse(tmpContents).trim();
|
||||
//List<String> jasoList = HangulParser.disassemble(resultParser);
|
||||
//String assembleStr = HangulParser.assemble(jasoList);
|
||||
|
||||
System.out.println("++++++++++++++ spam resultParser ::: "+resultParser);
|
||||
|
||||
//데이터베이스에 등록된 스팸문구와 일치하는 단어/문구가 있는지 체크함.
|
||||
int spmCnt = 0;
|
||||
for(String spmTxt : resultSpamTxt) {
|
||||
|
||||
@ -22,6 +22,7 @@ import itn.com.cmm.EgovMessageSource;
|
||||
import itn.com.cmm.LoginVO;
|
||||
import itn.com.cmm.util.MJUtil;
|
||||
import itn.com.utl.fcc.service.EgovStringUtil;
|
||||
import itn.let.kakao.kakaoComm.KakaoButtonVO;
|
||||
import itn.let.kakao.kakaoComm.KakaoSendUtil;
|
||||
import itn.let.kakao.kakaoComm.KakaoVO;
|
||||
import itn.let.kakao.kakaoComm.kakaoApi.service.KakaoApiService;
|
||||
@ -335,20 +336,60 @@ public class KakaoFriendsTalkSendController {
|
||||
System.out.println("++++++++++++++++++++++ imageFileName ::: "+kakaoVO.getImageFileName());
|
||||
System.out.println("++++++++++++++++++++++ adFlag ::: "+kakaoVO.getAdFlag());
|
||||
System.out.println("++++++++++++++++++++++ templateContents ::: "+kakaoVO.getTemplateContent());
|
||||
System.out.println("++++++++++++++++++++++ templateImageUrl ::: "+kakaoVO.getTemplateImageUrl());
|
||||
System.out.println("++++++++++++++++++++++ kakaoFtPrice ::: "+kakaoVO.getKakaoFtPrice());
|
||||
System.out.println("++++++++++++++++++++++ eachPrice ::: "+kakaoVO.getEachPrice());
|
||||
System.out.println("++++++++++++++++++++++ totPrice ::: "+kakaoVO.getTotalPrice());
|
||||
|
||||
|
||||
for(KakaoButtonVO buttonVO : kakaoVO.getButtonVOList()) {
|
||||
|
||||
System.out.println("++++++++++++++ button Name ::: "+buttonVO.getName());
|
||||
System.out.println("++++++++++++++ button type :::"+ buttonVO.getLinkType());
|
||||
System.out.println("++++++++++++++ button pc :::"+ buttonVO.getLinkPc());
|
||||
System.out.println("++++++++++++++ button mobile :::"+ buttonVO.getLinkMo());
|
||||
System.out.println("++++++++++++++ button android :::"+ buttonVO.getLinkAnd());
|
||||
System.out.println("++++++++++++++ button ios :::"+ buttonVO.getLinkIos());
|
||||
|
||||
}
|
||||
|
||||
List<String[]> varValList = new ArrayList<String[]>();
|
||||
|
||||
System.out.println(kakaoVO.getTxtReplYn());
|
||||
System.out.println("+++++++++++++++ txtReplYn ::: "+kakaoVO.getTxtReplYn());
|
||||
|
||||
/*for(List<String[]> varValList : kakaoVO.getVarValList()) {
|
||||
varValList = kakaoVO.getVarValList();
|
||||
|
||||
for(int i=0; i < varValList.size(); i++) {
|
||||
|
||||
|
||||
} */
|
||||
String tmpVar = varValList.get(i)[0];
|
||||
System.out.println("+++++++++++++ tmpVar ::: "+tmpVar);
|
||||
|
||||
}
|
||||
|
||||
for(String callTo : kakaoVO.getCallToList()) {
|
||||
|
||||
System.out.println("++++++++++++ callTo ::: "+callTo);
|
||||
|
||||
}
|
||||
|
||||
System.out.println("++++++++++++++++ spamStatus ::: "+kakaoVO.getSpamStatus());
|
||||
|
||||
System.out.println("++++++++++++++++ 대체문자 사용 여부 ::: "+kakaoVO.getSubMsgSendYn());
|
||||
|
||||
System.out.println("++++++++++++++++ 발신번호 ::: "+kakaoVO.getCallFrom());
|
||||
System.out.println("++++++++++++++++ 대체문자 내용 ::: "+kakaoVO.getSmsTxtArea());
|
||||
|
||||
System.out.println("++++++++++++++++ 대체문자 타입 ::: "+kakaoVO.getSubMsgType());
|
||||
|
||||
System.out.println("++++++++++++++++ 예약문자 여부 ::: "+kakaoVO.getReserveYn());
|
||||
|
||||
System.out.println("++++++++++++++++ 예약 시간 ::: "+kakaoVO.getReqDate());
|
||||
|
||||
|
||||
|
||||
modelAndView.addObject("result", "success");
|
||||
modelAndView.addObject("resultSts", kakaoVO.getCallToList().length);
|
||||
return modelAndView;
|
||||
}
|
||||
|
||||
|
||||
@ -806,9 +806,6 @@ function fn_sendMsgData(){
|
||||
|
||||
var rtnStr = strChinJpnCheck(tmpContents);
|
||||
|
||||
console.log(tmpContents);
|
||||
console.log("+++++++++++ emojiCheck ::: "+emojiCheck(tmpContents));
|
||||
|
||||
//문자내용에 이모지가 있는지 체크
|
||||
if(!emojiCheck(tmpContents)) return false;
|
||||
|
||||
@ -1130,6 +1127,7 @@ function fn_sendMsgData(){
|
||||
var adFlag = $("input[name=ad_flag]:checked").val();
|
||||
$("#adFlag").val(adFlag);
|
||||
|
||||
//치환문자에 대한 데이터 누락 체크
|
||||
if(!varValStatus){
|
||||
|
||||
alert("특정문구 일괄변환에 대한 일부 데이터가 누락된 부분이 있습니다. 데이터를 확인해 주세요.");
|
||||
@ -1349,6 +1347,8 @@ function thisFnByteString(contents){
|
||||
// $('.msg_title').addClass('active');
|
||||
//document.getElementById("mmsSubject").disabled = false;
|
||||
|
||||
$("#subMsgType").val("LMS");
|
||||
|
||||
}else{
|
||||
|
||||
$('#msgLeng').html(conLeng + " / ");
|
||||
@ -1360,11 +1360,18 @@ function thisFnByteString(contents){
|
||||
$('.msg_com').addClass("msg_short"); // 장문 클래스 삽입
|
||||
// $('.put_left').addClass("short"); // 내용 입력 박스에 클래스 삽입
|
||||
// $('.msg_title, .title_wrap .textbox').removeClass('active');
|
||||
$("#subMsgType").val("SMS");
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function msgSuccessClose(obj){
|
||||
$(obj).closest('.pop_msg_success').attr('style','');
|
||||
location.reload(true);
|
||||
$('html').scrollTop(0);
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<!-- 로딩바 -->
|
||||
@ -1424,11 +1431,14 @@ function thisFnByteString(contents){
|
||||
|
||||
<!-- 대체문자 여부 -->
|
||||
<input type="hidden" id="subMsgSendYn" name="subMsgSendYn" value="N"/>
|
||||
<input type="hidden" id="subMsgType" name="subMsgType" value="SMS"/>
|
||||
|
||||
|
||||
<!-- 발신번호정보 -->
|
||||
<input type="hidden" id="callFrom" name="callFrom" value=""/>
|
||||
|
||||
<!-- 친구톡 발송 단가 정보 -->
|
||||
<input type="hidden" id="kakaoFtPrice" name="kakaoFtPrice" value="<c:out value='${sendPrice.kakaoFtPrice}' />"/>
|
||||
<input type="hidden" id="eachPrice" name="eachPrice" value=""/>
|
||||
<input type="hidden" id="totPrice" name="totalPrice" value=""/>
|
||||
|
||||
@ -2093,6 +2103,23 @@ function thisFnByteString(contents){
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 문자발송 성공 레이어팝업 -->
|
||||
<div class="tooltip-wrap">
|
||||
<div class="popup-com pop_msg_success">
|
||||
<div class="popup_heading">
|
||||
<p>알람톡 전송 결과</p>
|
||||
<button type="button" class="tooltip-close" onclick="msgSuccessClose(this);"><img src="/publish/images/content/layerPopup_close.png" alt="팝업 닫기"></button>
|
||||
</div>
|
||||
<div class="layer_in">
|
||||
<div class="msg_text">발송 성공 : <strong>1</strong> 건,수신거부 : <span>0</span>건의<br>문자가 발송 되었습니다.</div>
|
||||
</div>
|
||||
<div class="popup_btn">
|
||||
<button type="button" onclick="msgResultLink(); return false;">알림톡 발송결과 바로가기</button>
|
||||
<button type="button" class="tooltip-close" onclick="msgSuccessClose(this);">확인</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 주소록 불러오기 -->
|
||||
<div class="tooltip-wrap">
|
||||
<div class="popup-com import_layer popup06" tabindex="0" data-tooltip-con="popup06" data-focus="popup06" data-focus-prev="popup06-close" style="width: 1000px">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user