From c36d803a14bfb0de261140509b47582049b269b1 Mon Sep 17 00:00:00 2001 From: daekuk Date: Thu, 12 Feb 2026 09:16:34 +0900 Subject: [PATCH] =?UTF-8?q?-=20=ED=81=B4=EB=A6=BD=EB=B3=B4=EB=93=9C=20?= =?UTF-8?q?=EB=B3=B5=EC=82=AC=EA=B8=B0=EB=8A=A5=20=EC=9B=90=EB=B3=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tracking/trackingManDetail.jsp | 49 ------------------- 1 file changed, 49 deletions(-) diff --git a/WebContent/jsp/onl/transaction/tracking/trackingManDetail.jsp b/WebContent/jsp/onl/transaction/tracking/trackingManDetail.jsp index 7dc1fd7..ea33fee 100644 --- a/WebContent/jsp/onl/transaction/tracking/trackingManDetail.jsp +++ b/WebContent/jsp/onl/transaction/tracking/trackingManDetail.jsp @@ -212,22 +212,6 @@ layoutInfo = json.standardHeader; bzwkdatatntInfo = json.BZWKDATACTNT; - // bzwkdatatntInfoLength 파싱 및 패딩 처리 - let bzwkdatatntInfoLength = 0; - try { - bzwkdatatntInfoLength = parseInt(layoutInfo[layoutInfo.length - 2].value, 10); - if (isNaN(bzwkdatatntInfoLength)) { - bzwkdatatntInfoLength = 0; - } - } catch (e) { - bzwkdatatntInfoLength = 0; - } - - // bzwkdatatntInfo 패딩 적용 - if (bzwkdatatntInfoLength > 0 && bzwkdatatntInfo) { - bzwkdatatntInfo = padByteString(bzwkdatatntInfo, bzwkdatatntInfoLength); - } - if((isInboundPart && isInboundWithoutNet) || (isOutboundPart && isOutboundWithoutNet)){ selectHttpLog(url, prcsDate, json.EAISVCSERNO.trim(), logPrcssSerno); }else{ @@ -935,39 +919,6 @@ $(document).ready(function() { }); -/** - * 문자열의 바이트 수 계산 (한글 2바이트, 영문/숫자 1바이트) - */ -function getByteLength(str) { - let byteCount = 0; - for (let i = 0; i < str.length; i++) { - const charCode = str.charCodeAt(i); - byteCount += (charCode >= 0xAC00 && charCode <= 0xD7A3) ? 2 : 1; - } - return byteCount; -} - -/** - * 문자열을 주어진 바이트 수만큼 패딩 - * @param {string} str - 원본 문자열 - * @param {number} targetBytes - 목표 바이트 수 - * @param {string} position - 'left' 또는 'right' (기본: 'right') - * @param {string} padChar - 패딩 문자 (기본: 공백) - * @returns {string} - 패딩된 문자열 - */ -function padByteString(str, targetBytes, position = 'right', padChar = ' ') { - const currentBytes = getByteLength(str); - - if (currentBytes >= targetBytes) { - return str; // 이미 목표 바이트 이상이면 그대로 반환 - } - - const paddingBytes = targetBytes - currentBytes; - const padding = padChar.repeat(paddingBytes); - - return position === 'left' ? padding + str : str + padding; -} -