[SHOPTIME-5110] 미국 / webOS24 / 앱 첫 진입 시 508 error shcnf

[수정사항] deviceId가 없는 경우 API 호출을 하지 않음
This commit is contained in:
dongyoungKo
2025-02-28 16:37:15 +09:00
parent bdb3112bda
commit 13c7f4bd05

View File

@@ -4,17 +4,20 @@ import React, {
useMemo,
useRef,
useState,
} from "react";
} from 'react';
import { useDispatch, useSelector } from "react-redux";
import {
useDispatch,
useSelector,
} from 'react-redux';
import platform from "@enact/core/platform";
import { Job } from "@enact/core/util";
import ThemeDecorator from "@enact/sandstone/ThemeDecorator";
import Spotlight from "@enact/spotlight";
import platform from '@enact/core/platform';
import { Job } from '@enact/core/util';
import ThemeDecorator from '@enact/sandstone/ThemeDecorator';
import Spotlight from '@enact/spotlight';
import appinfo from "../../webos-meta/appinfo.json";
import { types } from "../actions/actionTypes";
import appinfo from '../../webos-meta/appinfo.json';
import { types } from '../actions/actionTypes';
import {
changeAppStatus,
checkFirstLaunch,
@@ -27,30 +30,41 @@ import {
setDeepLink,
setGNBMenu,
setSecondLayerInfo,
} from "../actions/commonActions";
import { getShoptimeTerms } from "../actions/empActions";
import { getHomeMenu, getHomeTerms } from "../actions/homeActions";
} from '../actions/commonActions';
import { getShoptimeTerms } from '../actions/empActions';
import {
getHomeMenu,
getHomeTerms,
} from '../actions/homeActions';
import {
getMyRecommandedKeyword,
getMyUpcomingAlertShow,
setMyTermsWithdraw,
} from "../actions/myPageActions";
import { pushPanel } from "../actions/panelActions";
import { countryCode, ricCode } from "../api/apiConfig";
import NotSupportedVersion from "../components/NotSupportedVersion/NotSupportedVersion";
import TPopUp from "../components/TPopUp/TPopUp";
import usePrevious from "../hooks/usePrevious";
import { checkValidCountry } from "../lunaSend/common";
import { lunaTest } from "../lunaSend/lunaTest";
import { store } from "../store/store";
import * as Config from "../utils/Config";
import { $L, clearLaunchParams, getLaunchParams } from "../utils/helperMethods";
import { SpotlightIds } from "../utils/SpotlightIds";
import ErrorBoundary from "../views/ErrorBoundary";
import MainView from "../views/MainView/MainView";
import css from "./App.module.less";
import { handleBypassLink } from "./bypassLinkHandler";
import { handleDeepLink } from "./deepLinkHandler";
} from '../actions/myPageActions';
import { pushPanel } from '../actions/panelActions';
import {
countryCode,
ricCode,
} from '../api/apiConfig';
import NotSupportedVersion
from '../components/NotSupportedVersion/NotSupportedVersion';
import TPopUp from '../components/TPopUp/TPopUp';
import usePrevious from '../hooks/usePrevious';
import { checkValidCountry } from '../lunaSend/common';
import { lunaTest } from '../lunaSend/lunaTest';
import { store } from '../store/store';
import * as Config from '../utils/Config';
import {
$L,
clearLaunchParams,
getLaunchParams,
} from '../utils/helperMethods';
import { SpotlightIds } from '../utils/SpotlightIds';
import ErrorBoundary from '../views/ErrorBoundary';
import MainView from '../views/MainView/MainView';
import css from './App.module.less';
import { handleBypassLink } from './bypassLinkHandler';
import { handleDeepLink } from './deepLinkHandler';
let foreGroundChangeTimer = null;
@@ -331,11 +345,12 @@ function AppBase(props) {
webOSVersion &&
Number(webOSVersion) >= 6 &&
deviceCountryCode &&
deviceCountryCode === "US"
deviceCountryCode === "US" &&
deviceId
) {
dispatch(getShoptimeTerms());
}
}, [webOSVersion]);
}, [webOSVersion, deviceId]);
useEffect(() => {
console.log("App.js introTermsAgree", introTermsAgree);