[지라 이슈 없음] Log, IF-LGSP-LOG-004 / Entry 이력 수정
Terms 여부와 관계 없이 앱 진입 시 해당 로그 생성을 요청하도록 수정 Changed files: 1. commonActions.js 2. logActions.js 3. App.js 4. deepLinkHandler.js Detail note: 1. action 추가 (setGNBMenu) 2. sendLogGNB 함수 수정 3. deepLink 로직 관련 useEffect 수정 4. handleDeepLink 함수 수정
This commit is contained in:
@@ -23,6 +23,8 @@ import {
|
||||
getSystemSettings,
|
||||
sendBroadCast,
|
||||
setDeepLink,
|
||||
setGNBMenu,
|
||||
setSecondLayerInfo,
|
||||
} from "../actions/commonActions";
|
||||
import { getShoptimeTerms } from "../actions/empActions";
|
||||
import { getHomeMenu, getHomeTerms } from "../actions/homeActions";
|
||||
@@ -337,6 +339,9 @@ function AppBase(props) {
|
||||
const linkTpNm = launchParmas.contentTarget
|
||||
? launchParmas.contentTarget.split("_")[2] || ""
|
||||
: Config.LOG_MENU.APP;
|
||||
const linkTpCd = launchParmas.contentTarget
|
||||
? launchParmas.contentTarget.split("_")[1] || ""
|
||||
: "1000";
|
||||
|
||||
if (launchParmas.contentTarget) {
|
||||
dispatch(
|
||||
@@ -347,8 +352,10 @@ function AppBase(props) {
|
||||
);
|
||||
}
|
||||
|
||||
const entryMenu = linkTpNm;
|
||||
dispatch({ type: types.SET_GNB_MENU, payload: entryMenu });
|
||||
dispatch(setGNBMenu(linkTpNm));
|
||||
dispatch(
|
||||
setSecondLayerInfo({ linkTpCd, logTpNo: Config.LOG_TP_NO.SECOND_LAYER })
|
||||
);
|
||||
}, [dispatch]);
|
||||
|
||||
return (
|
||||
|
||||
@@ -242,12 +242,4 @@ export const handleDeepLink = (contentTarget) => (dispatch, getState) => {
|
||||
console.log("handleDeepLink - no target");
|
||||
}
|
||||
}
|
||||
|
||||
const secondLayerInfo = {
|
||||
linkTpCd,
|
||||
// linkTpNm
|
||||
logTpNo: LOG_TP_NO.SECOND_LAYER,
|
||||
};
|
||||
|
||||
dispatch(setSecondLayerInfo(secondLayerInfo));
|
||||
};
|
||||
|
||||
@@ -445,6 +445,11 @@ export const setSecondLayerInfo = (secondLayerInfo) => ({
|
||||
payload: secondLayerInfo,
|
||||
});
|
||||
|
||||
export const setGNBMenu = (menu) => ({
|
||||
type: types.SET_GNB_MENU,
|
||||
payload: menu,
|
||||
});
|
||||
|
||||
//luna-send -f -n 1 luna://com.webos.service.db/delKind '{"id": "com.lgshop.app:5"}' -a "com.lgshop.app"
|
||||
export const deleteOldDb8Datas = () => (dispatch) => {
|
||||
for (let i = 1; i < 10; i++) {
|
||||
|
||||
@@ -6,7 +6,7 @@ import {
|
||||
getTimeDifferenceByMilliseconds,
|
||||
} from "../utils/helperMethods";
|
||||
import { types } from "./actionTypes";
|
||||
import { setSecondLayerInfo } from "./commonActions";
|
||||
import { setGNBMenu, setSecondLayerInfo } from "./commonActions";
|
||||
|
||||
export const getUrlByLogTpNo = (logTpNo) => {
|
||||
switch (logTpNo) {
|
||||
@@ -431,11 +431,11 @@ export const sendLogGNB = (menu) => (dispatch, getState) => {
|
||||
outDt: "",
|
||||
};
|
||||
|
||||
dispatch({ type: types.SET_GNB_MENU, payload: menu });
|
||||
dispatch(setGNBMenu(menu));
|
||||
dispatch(postLog(newParams));
|
||||
|
||||
if (
|
||||
[1, 2].includes(menuMovSno) &&
|
||||
[1].includes(menuMovSno) &&
|
||||
secondLayerInfo &&
|
||||
Object.keys(secondLayerInfo).length > 0
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user