[Log] modify "deepLinkHandler" and "App.js" to handle GNB Logs
changed files: 1. App.js 2. deepLinkHandler.js 3. Config.js
This commit is contained in:
@@ -2,43 +2,6 @@ import { setSecondLayerInfo } from "../actions/commonActions";
|
||||
import { pushPanel } from "../actions/panelActions";
|
||||
import { LOG_MENU, LOG_TP_NO, panel_names } from "../utils/Config";
|
||||
|
||||
export const getMenuByLinkTpCd = (linkTpCd) => {
|
||||
switch (linkTpCd) {
|
||||
case "1000":
|
||||
return LOG_MENU.APP;
|
||||
case "2000":
|
||||
return LOG_MENU.HOME_BANNER_1;
|
||||
case "2001":
|
||||
return LOG_MENU.HOME_BANNER_2;
|
||||
case "3000":
|
||||
return LOG_MENU.TVAD_BIG_BANNER;
|
||||
case "3001":
|
||||
return LOG_MENU.TVAD_HOME_LAUNCHER;
|
||||
case "3002":
|
||||
return LOG_MENU.TVAD_WEDGE;
|
||||
case "3003":
|
||||
return LOG_MENU.TVAD_COMPANION;
|
||||
case "6001":
|
||||
return LOG_MENU.LG_CHANNEL_QVC;
|
||||
case "6002":
|
||||
return LOG_MENU.LG_CHANNEL_HSN;
|
||||
case "6004":
|
||||
return LOG_MENU.LG_CHANNEL_ONTV4U;
|
||||
case "7000":
|
||||
return LOG_MENU.OVERLAY;
|
||||
case "8000":
|
||||
return LOG_MENU.TV_2DEPTH;
|
||||
case "8001":
|
||||
return LOG_MENU.TV_SEARCH;
|
||||
case "8002":
|
||||
return LOG_MENU.TV_SEARCH;
|
||||
case "9999":
|
||||
return LOG_MENU.UNKNOWN;
|
||||
default:
|
||||
return LOG_MENU.APP;
|
||||
}
|
||||
};
|
||||
|
||||
//V2_진입경로코드_진입경로명_MT_노출순번
|
||||
export const handleDeepLink = (contentTarget) => (dispatch, getState) => {
|
||||
let linkTpCd; // 진입경로코드
|
||||
@@ -58,6 +21,7 @@ export const handleDeepLink = (contentTarget) => (dispatch, getState) => {
|
||||
|
||||
if (contentTarget === null || contentTarget === undefined) {
|
||||
linkTpCd = "1000";
|
||||
linkTpNm = LOG_MENU.APP;
|
||||
} else {
|
||||
const tokens = contentTarget.split("_");
|
||||
|
||||
@@ -74,6 +38,11 @@ export const handleDeepLink = (contentTarget) => (dispatch, getState) => {
|
||||
return;
|
||||
}
|
||||
|
||||
if (parseInt(linkTpCd) < 2000 || parseInt(linkTpCd) > 8999) {
|
||||
linkTpCd = "9999";
|
||||
linkTpNm = LOG_MENU.UNKNOWN;
|
||||
}
|
||||
|
||||
switch (type) {
|
||||
case "MT":
|
||||
// "MT": Main TOP
|
||||
|
||||
Reference in New Issue
Block a user