From 970bfc6c8211ae3d515fda837829f3dc4305c0c6 Mon Sep 17 00:00:00 2001 From: ljpark Date: Fri, 4 Jul 2025 19:36:05 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9E=90=EB=A3=8C=EA=B4=80=20=EB=8D=B0?= =?UTF-8?q?=EC=9D=B4=ED=84=B0=20=EA=B0=80=EC=A0=B8=EC=98=A4=EA=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/sn/.env.local | 2 +- .../map/components/popupComponent/chart/infilChart.tsx | 4 ++-- apps/sn/app/components/lib/api/index.ts | 4 +--- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/apps/sn/.env.local b/apps/sn/.env.local index 3354fcc4c..109b519ea 100644 --- a/apps/sn/.env.local +++ b/apps/sn/.env.local @@ -5,7 +5,7 @@ NEXT_PUBLIC_PROXY_HOST = http://localhost:3002 NEXT_PUBLIC_SERVER_API_URL = http://dev.onasys.co.kr:8000 NEXT_PUBLIC_GEOSERVER_URL = http://rsone.iptime.org:10010/geoserver NEXT_PUBLIC_LX_GEOSERVER_URL = http://con.mind-one.co.kr:11306/geoserver #TODO 운영에서 바꿔야 함 -NEXT_PUBLIC_RSONE_DC_URL = https://apigateway.rsonesoft.com/dc-service #자료관 데이터 +NEXT_PUBLIC_RSONE_DC_URL = https://apigateway.rsonesoft.com #자료관 데이터 NEXT_PUBLIC_CLAIM_NAME = Authorization NEXT_PUBLIC_AUTH_USER_ID = token-id NEXT_PUBLIC_ACCESS_TOKEN = access-token diff --git a/apps/sn/app/(map-layout)/map/components/popupComponent/chart/infilChart.tsx b/apps/sn/app/(map-layout)/map/components/popupComponent/chart/infilChart.tsx index 8ad2a4362..46c94eaf6 100644 --- a/apps/sn/app/(map-layout)/map/components/popupComponent/chart/infilChart.tsx +++ b/apps/sn/app/(map-layout)/map/components/popupComponent/chart/infilChart.tsx @@ -30,7 +30,7 @@ const InfilChart = ({ btnTxt, isModalOpen, setIsModalOpen, closeModal, pplMngNo }); const [inftwtQty, setInftwtQty] = useState(0); // 침입수량 const aplcnYms = fn.useAplcnYms('inftwtAnlsRslt'); // 상수사용월 데이터 가져오기 - const dcData = fn.getDcTree(); // 자료관 데이터 가져오기 + pplMngNo = "L"+pplMngNo; // inp파일에 하수관로와 맨홀의 번호가 같으면 분석 오류가 발행하여 const openPopup = () => { if (buttonRef.current) { @@ -70,7 +70,7 @@ const InfilChart = ({ btnTxt, isModalOpen, setIsModalOpen, closeModal, pplMngNo setInftwtAnlsInfos([{ val: 0, text: '선택' }]); return; } - + const dcData = fn.getDcTree(); // 자료관 데이터 가져오기 fn.selectInftwtAnls(aplcnYm) .then((data) => { setInftwtAnlss(data ?? []); diff --git a/apps/sn/app/components/lib/api/index.ts b/apps/sn/app/components/lib/api/index.ts index 1d711b18a..11267a573 100644 --- a/apps/sn/app/components/lib/api/index.ts +++ b/apps/sn/app/components/lib/api/index.ts @@ -1,5 +1,4 @@ const BASE_URL = process.env.NEXT_PUBLIC_SEWERAGE_API_URL || ''; -const DC_URL = process.env.NEXT_PUBLIC_RSONE_DC_URL || ''; export const postData = async (url: string, data: object): Promise => { const options: RequestInit = { @@ -57,8 +56,7 @@ export const getData = async (url: string, data?: object): Promise => { export const getDcData = async (url: string, data?: object): Promise => { console.log(url); - console.log(`${DC_URL}${url}`); - const res = await fetch(`${DC_URL}${url}`, { + const res = await fetch('/dc-service'+url, { method: "GET", }); if (res.ok) {