선거문자 20건 테스트 발송 오류 수정

- 20건 문자에는 선거필수문구가 없는 경우 오류 발생하여 수정함
선거문자 받는사람 영역의 주소록에등록 기능 오류 수정
 - 이름, 치환문자에 "," 있는 경우 주소록 저장에 오류 발생하여 수정 처리함
 - ","를 다른 문자로 치환하여 컨트롤러로 전달 후 역치환하여 디비에 저장
This commit is contained in:
rosewiper 2023-12-14 17:43:29 +09:00
parent ab5c274e66
commit 26d0775a61
2 changed files with 15 additions and 8 deletions

View File

@ -2177,31 +2177,31 @@ $('.registAddr').click(function(){
}
nameList[i] = name;
nameList[i] = name.replaceAll(",","§");
phoneNum[i] = phone;
if(rep1 == "" || rep1 == null){
rep1List[i] = "-";
}else{
rep1List[i] = rep1;
rep1List[i] = rep1.replaceAll(",","§");
}
if(rep2 == "" || rep2 == null){
rep2List[i] = "-";
}else{
rep2List[i] = rep2;
rep2List[i] = rep2.replaceAll(",","§");
}
if(rep3 == "" || rep3 == null){
rep3List[i] = "-";
}else{
rep3List[i] = rep3;
rep3List[i] = rep3.replaceAll(",","§");
}
if(rep4 == "" || rep4 == null){
rep4List[i] = "-";
}else{
rep4List[i] = rep4;
rep4List[i] = rep4.replaceAll(",","§");
}
/* if(name == "" || name == null){

View File

@ -123,9 +123,16 @@ function fn_testSendMsgData(){
form.smsTxt.value = adTxt + $(".preview_auto").find("pre").text() + '\n' + denyTxt + " "; //광고 문구 뒤에 공백을 붙이게되므로, 뒤에 한칸 추가하여 바이트수를 맞춤
} else if (msgKind == 'C') { //선거문자
var adTxt = $('.ad_tit').text();
var denyTxt = $('.deny_receipt').html();
denyTxt = denyTxt.replaceAll("<br>","\n");
var adTxt = '';
var denyTxt = '';
var adverYn = opener.document.msgForm.send_adYn.value;
//선거문자 20건 발송에서는 선거 필수문구가 필수가 아니어서 선거문자 필수 문구가 있는지 체크하여 처리함.20231214 추가
if(adverYn == 'Y'){
adTxt = $('.ad_tit').text();
denyTxt = $('.deny_receipt').html();
denyTxt = denyTxt.replaceAll("<br>","\n");
}
form.smsTxt.value = adTxt + '\n' + $(".preview_auto").find("pre").text() + '\n' + denyTxt;