From fd7bf4062d5bb0983677c7d6bed46e5a239775f5 Mon Sep 17 00:00:00 2001 From: "DESKTOP-6E8S9S5\\LEE" Date: Mon, 15 Jun 2026 18:03:03 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B0=9C=EC=A0=84=EC=8B=9C=EB=AE=AC=EB=A0=88?= =?UTF-8?q?=EC=9D=B4=EC=85=98=20=ED=8C=9D=EC=97=85=EC=B0=BD=20=EC=98=A4?= =?UTF-8?q?=ED=94=88=20=EC=86=8C=EC=8A=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 1 - .env.localhost | 1 - .env.production | 1 - src/components/header/Header.jsx | 20 ++++++-------------- 4 files changed, 6 insertions(+), 17 deletions(-) diff --git a/.env.development b/.env.development index 0d44ce67..23ace926 100644 --- a/.env.development +++ b/.env.development @@ -15,7 +15,6 @@ NEXT_PUBLIC_CONVERTER_DXF_API_URL="https://v2.convertapi.com/convert/dxf/to/png? NEXT_PUBLIC_Q_ORDER_AUTO_LOGIN_URL="https://q-order-dev.q-cells.jp/eos/login/autoLogin" NEXT_PUBLIC_Q_MUSUBI_AUTO_LOGIN_URL="https://q-musubi-dev.q-cells.jp/qm/login/autoLogin" -NEXT_PUBLIC_ECONOMIC_SIMULATION_AUTH_URL="https://q-order-dev.q-cells.jp/eos/simulation/auth" NEXT_PUBLIC_ECONOMIC_SIMULATION_URL="https://q-order-dev.q-cells.jp/eos/simulation/list" # 테스트용 diff --git a/.env.localhost b/.env.localhost index cd3a3245..7762c655 100644 --- a/.env.localhost +++ b/.env.localhost @@ -15,7 +15,6 @@ NEXT_PUBLIC_CONVERTER_DXF_API_URL="https://v2.convertapi.com/convert/dxf/to/png? NEXT_PUBLIC_Q_ORDER_AUTO_LOGIN_URL="http://q-order-stg.q-cells.jp:8120/eos/login/autoLogin" NEXT_PUBLIC_Q_MUSUBI_AUTO_LOGIN_URL="http://q-musubi-stg.q-cells.jp:8120/qm/login/autoLogin" -NEXT_PUBLIC_ECONOMIC_SIMULATION_AUTH_URL="http://q-order-stg.q-cells.jp:8120/eos/simulation/auth" NEXT_PUBLIC_ECONOMIC_SIMULATION_URL="http://q-order-stg.q-cells.jp:8120/eos/simulation/list" # 테스트용 diff --git a/.env.production b/.env.production index e421b123..3d205afd 100644 --- a/.env.production +++ b/.env.production @@ -15,7 +15,6 @@ NEXT_PUBLIC_CONVERTER_DXF_API_URL="https://v2.convertapi.com/convert/dxf/to/png? NEXT_PUBLIC_Q_ORDER_AUTO_LOGIN_URL="https://q-order.q-cells.jp/eos/login/autoLogin" NEXT_PUBLIC_Q_MUSUBI_AUTO_LOGIN_URL="https://q-musubi.q-cells.jp/qm/login/autoLogin" -NEXT_PUBLIC_ECONOMIC_SIMULATION_AUTH_URL="https://q-order.q-cells.jp/eos/simulation/auth" NEXT_PUBLIC_ECONOMIC_SIMULATION_URL="https://q-order.q-cells.jp/eos/simulation/list" # AWS_REGION="ap-northeast-2" diff --git a/src/components/header/Header.jsx b/src/components/header/Header.jsx index dce8e874..5fe0a9ba 100644 --- a/src/components/header/Header.jsx +++ b/src/components/header/Header.jsx @@ -27,7 +27,6 @@ import { roofMaterialsAtom } from '@/store/settingAtom' import { useMasterController } from '@/hooks/common/useMasterController' import { ROOF_MATERIAL_LAYOUT } from '@/components/floor-plan/modal/placementShape/PlacementShapeSetting' import { useSwal } from '@/hooks/useSwal' -import { logger } from '@/util/logger' export const ToggleonMouse = (e, act, target) => { const listWrap = e.target.closest(target) @@ -174,19 +173,12 @@ export default function Header(props) { const { encSaleStoreId, encUserId } = encRes.data if (!encSaleStoreId || !encUserId) return - - const authRes = await fetch(process.env.NEXT_PUBLIC_ECONOMIC_SIMULATION_AUTH_URL, { - method: 'POST', - headers: { 'Content-Type': 'application/json' }, - body: JSON.stringify({ encStoreId: encSaleStoreId, encRegId: encUserId }), - }) - - if (authRes.ok) { - window.open(process.env.NEXT_PUBLIC_ECONOMIC_SIMULATION_URL, 'economicSimulation', `height=${screen.height},width=${screen.width},fullscreen=yes`) - } else { - const body = await authRes.json() - swalFire({ text: body.resultMessage, type: 'error' }) - } + + window.open( + `${process.env.NEXT_PUBLIC_ECONOMIC_SIMULATION_URL}?authYn=Y&encStoreId=${encodeURIComponent(encSaleStoreId)}&encRegId=${encodeURIComponent(encUserId)}`, + 'economicSimulation', + `height=${screen.height},width=${screen.width},fullscreen=yes` + ) } const menus = [ -- 2.47.2