From 65c2fb17832ca4a63ceb451d6a77c4bb1ef2418a Mon Sep 17 00:00:00 2001 From: "hehihoho3@gmail.com" Date: Wed, 16 Apr 2025 11:36:35 +0900 Subject: [PATCH] =?UTF-8?q?=EC=95=8C=EB=A6=BC=ED=86=A1=20=EB=B0=9C?= =?UTF-8?q?=EC=86=A1=20>=20=EB=B2=88=ED=98=B8=EC=B6=94=EA=B0=80=20?= =?UTF-8?q?=EB=B2=84=ED=8A=BC=20=ED=81=B4=EB=A6=AD=20=EC=8B=9C=2030?= =?UTF-8?q?=EB=A7=8C=EA=B1=B4=20=EC=A0=9C=ED=95=9C=20=EC=B2=B4=ED=81=AC=20?= =?UTF-8?q?=ED=9B=84=20alert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/webapp/js/kakao/at/tabulator.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/main/webapp/js/kakao/at/tabulator.js b/src/main/webapp/js/kakao/at/tabulator.js index 051e09bd..6a3947c1 100644 --- a/src/main/webapp/js/kakao/at/tabulator.js +++ b/src/main/webapp/js/kakao/at/tabulator.js @@ -132,6 +132,17 @@ $(document).ready(function (){ + // ⬇️ 기존 tableL 데이터 개수 확인 + var existingData = tableL.getData(); + var totalCount = existingData.length + numbers.length; + + // ⬇️ 30만건 초과 시 경고 및 중단 + if (totalCount > 300000) { + alert("안정적인 서비스 운영을 위해서 최대 300000건 이내로 분할 발송해 주시기 바랍니다."); + return; + } + + const formattedData = numbers.map(num => ({phone: num})); // 기존 tableL의 데이터를 가져옵니다.