From 9f71c354a8b8522d34bb05344455b8e0c9c7ae8b Mon Sep 17 00:00:00 2001 From: cha Date: Thu, 29 May 2025 16:09:11 +0900 Subject: [PATCH] =?UTF-8?q?qna=20downloadFile2=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../qcast/biz/community/BoardService.java | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/interplug/qcast/biz/community/BoardService.java b/src/main/java/com/interplug/qcast/biz/community/BoardService.java index fc9112b3..8361ec94 100644 --- a/src/main/java/com/interplug/qcast/biz/community/BoardService.java +++ b/src/main/java/com/interplug/qcast/biz/community/BoardService.java @@ -336,16 +336,19 @@ BoardResponse boardResponse = null; /* [1]. QSP API (url + fileNo) Setting */ String url = null; if("NO".equals(zipYn)) { - url = QSP_API_URL + "/api/file/downloadFile2"; + url = QSP_API_URL + "/api/file/downloadFile2?encodeFileNo=" + keyNo; + }else{ url = QSP_API_URL + "/api/file/downloadFile"; + + if ("Y".equals(zipYn)) { + url += "?noticeNo=" + keyNo; + } else { + url += "?fileNo=" + keyNo; + } } - if ("Y".equals(zipYn)) { - url += "?noticeNo=" + keyNo; - } else { - url += "?fileNo=" + keyNo; - } + /* [2]. QSP API CALL -> Response */ Map result = new HashMap();