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 = [