Merge branch '5102_친구톡_발송속도_개선' into 5361_알림톡_환불수정
@9384b6776cbfee56d990b32f569f1af25bfcc977
--- src/main/resources/egovframework/sqlmap/let/mjo/kakao/KakaoSent_SQL_Mysql.xml
+++ src/main/resources/egovframework/sqlmap/let/mjo/kakao/KakaoSent_SQL_Mysql.xml
... | ... | @@ -1820,8 +1820,19 @@ |
| 1820 | 1820 |
, a.failCount |
| 1821 | 1821 |
, a.kakaoResendSuccCount |
| 1822 | 1822 |
, a.kakaoResendFailCount |
| 1823 |
- , a.successCount * bkp.BIZ_KAKAO_AT_PRICE AS successPrice |
|
| 1824 |
- , (a.smsCnt * bkp.BIZ_SMS_PRICE) + (a.mmsCnt * bkp.BIZ_MMS_PRICE) AS kakaoResendSuccPrice |
|
| 1823 |
+ <!-- , a.successCount * bkp.BIZ_KAKAO_AT_PRICE AS successPrice --> |
|
| 1824 |
+ ,case |
|
| 1825 |
+ when a.msgType = '8' then a.successCount * bkp.BIZ_KAKAO_AT_PRICE |
|
| 1826 |
+ when a.msgType = '9' and a.bizKakaoImageType = 'I' then a.successCount * bkp.BIZ_KAKAO_FT_IMG_PRICE |
|
| 1827 |
+ when a.msgType = '9' and a.bizKakaoImageType = 'W' then a.successCount * bkp.BIZ_KAKAO_FT_WIDE_IMG_PRICE |
|
| 1828 |
+ when a.msgType = '9' and a.bizKakaoImageType != 'I' and a.bizKakaoImageType != 'W' then a.successCount * bkp.BIZ_KAKAO_FT_PRICE |
|
| 1829 |
+ end successPrice |
|
| 1830 |
+ <!-- , (a.smsCnt * bkp.BIZ_SMS_PRICE) + (a.mmsCnt * bkp.BIZ_MMS_PRICE) AS kakaoResendSuccPrice --> |
|
| 1831 |
+ ,case |
|
| 1832 |
+ when a.msgType = '8' then (a.smsCnt * bkp.BIZ_SMS_PRICE) + (a.mmsCnt * bkp.BIZ_MMS_PRICE) |
|
| 1833 |
+ when a.msgType = '9' and (a.bizKakaoImageType = 'I' or a.bizKakaoImageType = 'W') then a.mmsCnt * bkp.BIZ_PICTURE_PRICE |
|
| 1834 |
+ when a.msgType = '9' and a.bizKakaoImageType != 'I' and a.bizKakaoImageType != 'W' then (a.smsCnt * bkp.BIZ_SMS_PRICE) + (a.mmsCnt * bkp.BIZ_MMS_PRICE) |
|
| 1835 |
+ end kakaoResendSuccPrice |
|
| 1825 | 1836 |
, a.divideYn |
| 1826 | 1837 |
, a.bizKakaoResendYn |
| 1827 | 1838 |
, MKPI.YELLOW_ID AS yellowId |
... | ... | @@ -1947,6 +1958,7 @@ |
| 1947 | 1958 |
, MD.BIZ_KAKAO_RESEND_YN as bizKakaoResendYn |
| 1948 | 1959 |
, MD.MSG_NOTICETALK_SENDER_KEY |
| 1949 | 1960 |
, MD.MSG_NOTICETALK_TMP_KEY |
| 1961 |
+ , MGD.BIZ_KAKAO_IMAGE_TYPE as bizKakaoImageType |
|
| 1950 | 1962 |
FROM MJ_MSG_DATA MD |
| 1951 | 1963 |
inner join MJ_MSG_GROUP_DATA MGD on |
| 1952 | 1964 |
MGD.MSG_GROUP_ID = MD.MSG_GROUP_ID |
--- src/main/webapp/WEB-INF/jsp/web/kakao/msgdata/ft/KakaoFriendsTalkMsgDataView.jsp
+++ src/main/webapp/WEB-INF/jsp/web/kakao/msgdata/ft/KakaoFriendsTalkMsgDataView.jsp
... | ... | @@ -65,21 +65,20 @@ |
| 65 | 65 |
|
| 66 | 66 |
}); |
| 67 | 67 |
|
| 68 |
- //웹링크 버튼명 |
|
| 68 |
+// 웹링크 버튼명 변경 시 미리보기에도 적용 (여러 개일 때 정확하게) |
|
| 69 | 69 |
$(document).on('keyup', '#btnNmWeb', function(){
|
| 70 |
- var inputTxt = $(this).val(); |
|
| 71 |
- if(!inputTxt){
|
|
| 72 |
- inputTxt = '웹링크'; |
|
| 73 |
- } |
|
| 74 |
- $('#btnViewWL').text(inputTxt);
|
|
| 70 |
+ var inputTxt = $(this).val() || '웹링크'; |
|
| 71 |
+ // 웹링크용 인풋만 골라서 현재 인덱스를 구함 |
|
| 72 |
+ var $webNmInputs = $('input#btnNmWeb');
|
|
| 73 |
+ var idx = $webNmInputs.index(this); |
|
| 74 |
+ // 미리보기 영역의 웹링크 버튼들 중, 동일한 인덱스의 버튼 텍스트를 바꿔줌 |
|
| 75 |
+ $('.btnViewArea .btn_kakao_type.btnEmpty[id^=btnViewWL]').eq(idx).text(inputTxt);
|
|
| 75 | 76 |
}); |
| 76 |
- //앱링크 버튼명 |
|
| 77 | 77 |
$(document).on('keyup', '#btnNmApp', function(){
|
| 78 |
- var inputTxt = $(this).val(); |
|
| 79 |
- if(!inputTxt){
|
|
| 80 |
- inputTxt = '앱링크'; |
|
| 81 |
- } |
|
| 82 |
- $('#btnViewAL').text(inputTxt);
|
|
| 78 |
+ var inputTxt = $(this).val() || '앱링크'; |
|
| 79 |
+ var $appNmInputs = $('input#btnNmApp');
|
|
| 80 |
+ var idx = $appNmInputs.index(this); |
|
| 81 |
+ $('.btnViewArea .btn_kakao_type.btnEmpty[id^=btnViewAL]').eq(idx).text(inputTxt);
|
|
| 83 | 82 |
}); |
| 84 | 83 |
|
| 85 | 84 |
$(".friend_talk_wrap #ad_Y").click(function () {
|
... | ... | @@ -166,6 +165,7 @@ |
| 166 | 165 |
$('#sendFailImg').hide();
|
| 167 | 166 |
$('#sendFailImgSrc').attr('src', '');
|
| 168 | 167 |
$('#atchFileId').val('');
|
| 168 |
+ thisFnByteString($('#smsTxtArea').val());
|
|
| 169 | 169 |
} |
| 170 | 170 |
|
| 171 | 171 |
|
... | ... | @@ -179,6 +179,19 @@ |
| 179 | 179 |
resultLatestMsgList(); |
| 180 | 180 |
//자주보내는 번호 |
| 181 | 181 |
resultBookMarkMsgList(); |
| 182 |
+ |
|
| 183 |
+ |
|
| 184 |
+ |
|
| 185 |
+ |
|
| 186 |
+ // 대체문자 초기화 |
|
| 187 |
+ $('#failCheckInit').on('click', function(){
|
|
| 188 |
+ console.log('::failCheckInit::');
|
|
| 189 |
+ $('#smsTxtArea').val('');
|
|
| 190 |
+ thisFnByteString('');
|
|
| 191 |
+ |
|
| 192 |
+ }); |
|
| 193 |
+ |
|
| 194 |
+ |
|
| 182 | 195 |
|
| 183 | 196 |
}); |
| 184 | 197 |
|
... | ... | @@ -649,6 +662,11 @@ |
| 649 | 662 |
// 대체문자 |
| 650 | 663 |
$('#sendFailImg').show();
|
| 651 | 664 |
$('#sendFailImgSrc').attr('src', returnData.object.imgUrl);
|
| 665 |
+ // 대체문자 포토형으로 수정 |
|
| 666 |
+// $('.put_left').removeClass("short"); //내용 입력 박스 클래스 삭제
|
|
| 667 |
+// $('.put_left').removeClass("long"); //내용 입력 박스 클래스 삭제
|
|
| 668 |
+// $('.put_left').addClass('photo');
|
|
| 669 |
+ setSendFailTemplate('P')
|
|
| 652 | 670 |
} |
| 653 | 671 |
|
| 654 | 672 |
} else {
|
... | ... | @@ -677,6 +695,25 @@ |
| 677 | 695 |
|
| 678 | 696 |
//첨부파일 이름 및 데이터 지워주기 - 완료 후 팝업이 자동으로 닫힘. |
| 679 | 697 |
$("#imgFile").val("");
|
| 698 |
+} |
|
| 699 |
+ |
|
| 700 |
+function setSendFailTemplate(p_type){
|
|
| 701 |
+ if(p_type == 'P'){
|
|
| 702 |
+ // 대체문자 포토형으로 수정 |
|
| 703 |
+ $('.put_left').removeClass("short"); //내용 입력 박스 클래스 삭제
|
|
| 704 |
+ $('.put_left').removeClass("long"); //내용 입력 박스 클래스 삭제
|
|
| 705 |
+ $('.put_left').addClass('photo');
|
|
| 706 |
+ |
|
| 707 |
+ $('.msg_com').removeClass("msg_short"); //단문 클래스 삭제하고
|
|
| 708 |
+ $('.msg_com').removeClass("msg_long"); //단문 클래스 삭제하고
|
|
| 709 |
+ $('.msg_com').addClass("msg_photo"); //단문 클래스 삭제하고
|
|
| 710 |
+ |
|
| 711 |
+ |
|
| 712 |
+ $('#limitLeng').html("2000");
|
|
| 713 |
+ $('.msg_com').html("그림");
|
|
| 714 |
+ |
|
| 715 |
+ } |
|
| 716 |
+ |
|
| 680 | 717 |
} |
| 681 | 718 |
|
| 682 | 719 |
function fnImageDel(){
|
... | ... | @@ -1447,39 +1484,50 @@ |
| 1447 | 1484 |
//문자 길이 변수에 저장해주기 |
| 1448 | 1485 |
// $('#smsLen').val(conLeng);
|
| 1449 | 1486 |
|
| 1487 |
+ var imgType = $('#sendFailImgSrc').attr('src');
|
|
| 1450 | 1488 |
|
| 1451 |
- if(conLeng > 90){
|
|
| 1489 |
+ |
|
| 1490 |
+ if(imgType != null && "" != imgType){
|
|
| 1491 |
+ |
|
| 1492 |
+ setSendFailTemplate('P')
|
|
| 1493 |
+ } |
|
| 1494 |
+ else if(conLeng > 90){
|
|
| 1452 | 1495 |
|
| 1453 |
- $('#msgLeng').html(conLeng + " / ");
|
|
| 1454 | 1496 |
$('#limitLeng').html("2000");
|
| 1455 | 1497 |
$('.msg_com').html("장문");
|
| 1456 | 1498 |
$('#msgType').val("6"); // 메세지 타입 설정
|
| 1457 | 1499 |
|
| 1458 | 1500 |
$('.msg_com').removeClass("msg_short"); //단문 클래스 삭제하고
|
| 1459 | 1501 |
$('.put_left').removeClass("short"); //내용 입력 박스 클래스 삭제
|
| 1502 |
+ $('.put_left').removeClass("photo"); //내용 입력 박스 클래스 삭제
|
|
| 1460 | 1503 |
$('.msg_com').addClass("msg_long"); // 장문 클래스 삽입
|
| 1461 | 1504 |
$("#subMsgType").val("LMS");
|
| 1462 | 1505 |
|
| 1463 | 1506 |
}else{
|
| 1464 | 1507 |
|
| 1465 |
- $('#msgLeng').html(conLeng + " / ");
|
|
| 1466 | 1508 |
$('#limitLeng').html("90");
|
| 1467 | 1509 |
$('.msg_com').html("단문");
|
| 1468 | 1510 |
$('#msgType').val("4"); // 메세지 타입 설정
|
| 1511 |
+ |
|
| 1469 | 1512 |
$('.msg_com').removeClass("msg_long"); //단문 클래스 삭제하고
|
| 1470 | 1513 |
$('.put_left').removeClass("long"); //내용 입력 박스 클래스 삭제
|
| 1514 |
+ $('.put_left').removeClass("photo"); //내용 입력 박스 클래스 삭제
|
|
| 1471 | 1515 |
$('.msg_com').addClass("msg_short"); // 장문 클래스 삽입
|
| 1472 | 1516 |
$("#subMsgType").val("SMS");
|
| 1473 | 1517 |
|
| 1474 | 1518 |
} |
| 1519 |
+ |
|
| 1520 |
+ $('#msgLeng').html(conLeng + " / ");
|
|
| 1475 | 1521 |
totalFtPriceSum(tableL.getRows().length); |
| 1476 | 1522 |
|
| 1477 | 1523 |
} |
| 1478 | 1524 |
|
| 1479 | 1525 |
function msgSuccessClose(obj){
|
| 1480 |
- $(obj).closest('.pop_msg_success').attr('style','');
|
|
| 1481 |
- location.reload(true); |
|
| 1482 |
- $('html').scrollTop(0);
|
|
| 1526 |
+// $(obj).closest('.pop_msg_success').attr('style','');
|
|
| 1527 |
+// location.reload(true); |
|
| 1528 |
+// $('html').scrollTop(0);
|
|
| 1529 |
+ |
|
| 1530 |
+ location.href = '/web/mjon/kakao/friendstalk/kakaoFriendsTalkMsgDataView.do'; |
|
| 1483 | 1531 |
} |
| 1484 | 1532 |
|
| 1485 | 1533 |
function getFtImageType(imgChk){
|
... | ... | @@ -1638,7 +1686,7 @@ |
| 1638 | 1686 |
<!-- // tab button --> |
| 1639 | 1687 |
<div class="top_content kakaotalksend_cont current pay_tab_wrap"> |
| 1640 | 1688 |
<div class="heading"> |
| 1641 |
- <h2>친구톡 전송</h2> |
|
| 1689 |
+ <h2>친구톡 전송</h2><!-- KakaoFriendsTalkMsgDataView --> |
|
| 1642 | 1690 |
<!-- <button type="button" class="button info">친구톡 사용방법</button> --> |
| 1643 | 1691 |
<button type="button" class="button info" onclick="infoListPop('friendTalkSend','792','340');">사용안내</button>
|
| 1644 | 1692 |
</div> |
--- src/main/webapp/publish/js/content.js
+++ src/main/webapp/publish/js/content.js
... | ... | @@ -1699,8 +1699,8 @@ |
| 1699 | 1699 |
+'<input type="text" id="btnNmBotChg" name="buttonVOList[' + buttonCnt + '].name" value="" placeholder="버튼명 입력(최대 14자)"></dd><dd><button type="button" class="btn_del" onclick="buttonTypeDel(this);"><img src="/publish/images/btn_delete.png" alt=""></button></dd></dl>'; |
| 1700 | 1700 |
buttonView = '<button type="button" class="btn_kakao_type btnEmpty" id="btnViewBT">챗봇전환</button>'; |
| 1701 | 1701 |
} else {}
|
| 1702 |
- $(".button_add_wrap").prepend(buttonText);
|
|
| 1703 |
- $(".btnViewArea").prepend(buttonView);
|
|
| 1702 |
+ $(".button_add_wrap").append(buttonText);
|
|
| 1703 |
+ $(".btnViewArea").append(buttonView);
|
|
| 1704 | 1704 |
} |
| 1705 | 1705 |
|
| 1706 | 1706 |
//관리자 카카오톡 알림톡 샘플 템플릿 등록 - 버튼 추가 |
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?