[251124] fix: Log정리-5
🕐 커밋 시간: 2025. 11. 24. 12:43:58 📊 변경 통계: • 총 파일: 40개 • 추가: +774줄 • 삭제: -581줄 📝 수정된 파일: ~ com.twin.app.shoptime/src/actions/appDataActions.js ~ com.twin.app.shoptime/src/actions/billingActions.js ~ com.twin.app.shoptime/src/actions/brandActions.js ~ com.twin.app.shoptime/src/actions/cancelActions.js ~ com.twin.app.shoptime/src/actions/cardActions.js ~ com.twin.app.shoptime/src/actions/cartActions.js ~ com.twin.app.shoptime/src/actions/checkoutActions.js ~ com.twin.app.shoptime/src/actions/commonActions.js ~ com.twin.app.shoptime/src/actions/convertActions.js ~ com.twin.app.shoptime/src/actions/couponActions.js ~ com.twin.app.shoptime/src/actions/deviceActions.js ~ com.twin.app.shoptime/src/actions/empActions.js ~ com.twin.app.shoptime/src/actions/eventActions.js ~ com.twin.app.shoptime/src/actions/forYouActions.js ~ com.twin.app.shoptime/src/actions/homeActions.js ~ com.twin.app.shoptime/src/actions/logActions.js ~ com.twin.app.shoptime/src/actions/mediaActions.js ~ com.twin.app.shoptime/src/actions/mockCartActions.js ~ com.twin.app.shoptime/src/actions/myPageActions.js ~ com.twin.app.shoptime/src/actions/onSaleActions.js ~ com.twin.app.shoptime/src/actions/orderActions.js ~ com.twin.app.shoptime/src/actions/panelActions.js ~ com.twin.app.shoptime/src/actions/panelNavigationActions.js ~ com.twin.app.shoptime/src/actions/pinCodeActions.js ~ com.twin.app.shoptime/src/actions/productActions.js ~ com.twin.app.shoptime/src/actions/queuedPanelActions.js ~ com.twin.app.shoptime/src/actions/searchActions.js ~ com.twin.app.shoptime/src/actions/shippingActions.js ~ com.twin.app.shoptime/src/actions/voiceActions.js ~ com.twin.app.shoptime/src/actions/webSpeechActions.js ~ com.twin.app.shoptime/src/reducers/localSettingsReducer.js ~ com.twin.app.shoptime/src/reducers/mediaOverlayReducer.js ~ com.twin.app.shoptime/src/reducers/mockCartReducer.js ~ com.twin.app.shoptime/src/reducers/playReducer.js ~ com.twin.app.shoptime/src/reducers/productReducer.js ~ com.twin.app.shoptime/src/reducers/videoOverlayReducer.js ~ com.twin.app.shoptime/src/views/UserReview/ShowUserReviews.jsx ~ com.twin.app.shoptime/src/views/UserReview/UserReviewPanel.jsx ~ com.twin.app.shoptime/src/views/UserReview/components/UserReviewsList.jsx ~ com.twin.app.shoptime/src/views/UserReview/components/VirtualScrollBar.jsx 🔧 함수 변경 내용: 📊 Function-level changes summary across 40 files: • Functions added: 14 • Functions modified: 34 • Functions deleted: 18 📋 By language: • javascript: 40 files, 66 function changes 🔧 주요 변경 내용: • 핵심 비즈니스 로직 개선 • 로깅 시스템 개선 • 설정 관리 시스템 개선 • UI 컴포넌트 아키텍처 개선
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
import { countryCode, URLS } from "../api/apiConfig";
|
||||
import { TLogEvent } from "../api/TLogEvent";
|
||||
import { LOG_MENU, LOG_TP_NO } from "../utils/Config";
|
||||
import {
|
||||
formatGMTString,
|
||||
getTimeDifferenceByMilliseconds,
|
||||
} from "../utils/helperMethods";
|
||||
import { setGNBMenu, setSecondLayerInfo } from "./commonActions";
|
||||
import { countryCode, URLS } from '../api/apiConfig';
|
||||
import { TLogEvent } from '../api/TLogEvent';
|
||||
import { LOG_MENU, LOG_TP_NO } from '../utils/Config';
|
||||
import { formatGMTString, getTimeDifferenceByMilliseconds } from '../utils/helperMethods';
|
||||
import { setGNBMenu, setSecondLayerInfo } from './commonActions';
|
||||
import { createDebugHelpers } from '../utils/debug';
|
||||
|
||||
// 디버그 헬퍼 설정
|
||||
const DEBUG_MODE = false;
|
||||
const { dlog, dwarn, derror } = createDebugHelpers(DEBUG_MODE);
|
||||
|
||||
export const getUrlByLogTpNo = (logTpNo) => {
|
||||
switch (logTpNo) {
|
||||
@@ -157,17 +159,17 @@ export const getUrlByLogTpNo = (logTpNo) => {
|
||||
|
||||
export const postTotalLog = (params, url) => (dispatch, getState) => {
|
||||
const onSuccess = (response) => {
|
||||
// console.log("#Total Log onSuccess.....", response);
|
||||
// dlog("#Total Log onSuccess.....", response);
|
||||
};
|
||||
|
||||
const onFail = (error) => {
|
||||
// console.error("totalLog onFail...", error);
|
||||
// derror("totalLog onFail...", error);
|
||||
};
|
||||
|
||||
TLogEvent(
|
||||
dispatch,
|
||||
getState,
|
||||
"post",
|
||||
'post',
|
||||
URLS.LOG_TOTAL_RECOMMEND,
|
||||
{},
|
||||
params,
|
||||
@@ -181,20 +183,20 @@ export const postLog = (params, url) => (dispatch, getState) => {
|
||||
const { logTpNo } = params;
|
||||
|
||||
const onSuccess = (response) => {
|
||||
// console.log(
|
||||
// dlog(
|
||||
// `postLog onSuccess logTpNo ${logTpNo}`,
|
||||
// JSON.parse(response.config.data)
|
||||
// );
|
||||
};
|
||||
|
||||
const onFail = (error) => {
|
||||
console.error("postLog onFail", error);
|
||||
derror('postLog onFail', error);
|
||||
};
|
||||
|
||||
TLogEvent(
|
||||
dispatch,
|
||||
getState,
|
||||
"post",
|
||||
'post',
|
||||
url ?? getUrlByLogTpNo(logTpNo),
|
||||
{},
|
||||
params,
|
||||
@@ -249,7 +251,7 @@ export const sendLogLive = (params, callback) => (dispatch, getState) => {
|
||||
const { entryMenu, nowMenu } = getState().common.menu;
|
||||
|
||||
if (!logTpNo || !patncNm || !patnrId || !showId || !watchStrtDt) {
|
||||
console.log("[sendLogLive] invalid params", params);
|
||||
dlog('[sendLogLive] invalid params', params);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -303,7 +305,7 @@ export const sendLogVOD = (params, callback) => (dispatch, getState) => {
|
||||
const { entryMenu, nowMenu } = getState().common.menu;
|
||||
|
||||
if (!logTpNo || !watchStrtDt) {
|
||||
console.log("[sendLogLive] invalid params", params);
|
||||
dlog('[sendLogLive] invalid params', params);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -368,24 +370,24 @@ export const sendLogCuration = (params) => (dispatch, getState) => {
|
||||
const { entryMenu, nowMenu } = getState().common.menu;
|
||||
|
||||
if (!logTpNo) {
|
||||
console.log("[sendLogCuration] invalid params", params);
|
||||
dlog('[sendLogCuration] invalid params', params);
|
||||
return;
|
||||
}
|
||||
|
||||
const newParams = {
|
||||
cnttTpNm: params.cnttTpNm ?? "",
|
||||
curationId: params.curationId ?? "",
|
||||
curationNm: params.curationNm ?? "",
|
||||
cnttTpNm: params.cnttTpNm ?? '',
|
||||
curationId: params.curationId ?? '',
|
||||
curationNm: params.curationNm ?? '',
|
||||
entryMenu: entryMenu,
|
||||
expsOrd: params.expsOrd ?? "",
|
||||
lgCatCd: params.lgCatCd ?? "",
|
||||
lgCatNm: params.lgCatNm ?? "",
|
||||
logTpNo: params.logTpNo ?? "",
|
||||
linkTpCd: params.linkTpCd ?? "",
|
||||
expsOrd: params.expsOrd ?? '',
|
||||
lgCatCd: params.lgCatCd ?? '',
|
||||
lgCatNm: params.lgCatNm ?? '',
|
||||
logTpNo: params.logTpNo ?? '',
|
||||
linkTpCd: params.linkTpCd ?? '',
|
||||
nowMenu: nowMenu,
|
||||
patncNm: params.patncNm ?? "",
|
||||
patnrId: params.patnrId ?? "",
|
||||
sortTpNm: params.sortTpNm ?? "",
|
||||
patncNm: params.patncNm ?? '',
|
||||
patnrId: params.patnrId ?? '',
|
||||
sortTpNm: params.sortTpNm ?? '',
|
||||
};
|
||||
|
||||
dispatch(postLog(newParams));
|
||||
@@ -438,16 +440,12 @@ export const sendLogGNB = (menu) => (dispatch, getState) => {
|
||||
const secondLayerInfo = getState().common.secondLayerInfo;
|
||||
|
||||
if (!menu) {
|
||||
console.log("[sendLogGNB] invalid params", menu);
|
||||
dlog('[sendLogGNB] invalid params', menu);
|
||||
return;
|
||||
}
|
||||
|
||||
if (
|
||||
![
|
||||
LOG_MENU.SEARCH_SEARCH,
|
||||
LOG_MENU.SEARCH_RESULT,
|
||||
LOG_MENU.SEARCH_BEST_SELLER,
|
||||
].includes(menu)
|
||||
![LOG_MENU.SEARCH_SEARCH, LOG_MENU.SEARCH_RESULT, LOG_MENU.SEARCH_BEST_SELLER].includes(menu)
|
||||
) {
|
||||
if (menu === nowMenu || !menuMovSno) {
|
||||
return;
|
||||
@@ -460,17 +458,13 @@ export const sendLogGNB = (menu) => (dispatch, getState) => {
|
||||
logTpNo: LOG_TP_NO.GNB,
|
||||
menuMovSno: `${menuMovSno}`,
|
||||
nowMenu: menu,
|
||||
outDt: "",
|
||||
outDt: '',
|
||||
};
|
||||
|
||||
dispatch(setGNBMenu(menu));
|
||||
dispatch(postLog(newParams));
|
||||
|
||||
if (
|
||||
[1].includes(menuMovSno) &&
|
||||
secondLayerInfo &&
|
||||
Object.keys(secondLayerInfo).length > 0
|
||||
) {
|
||||
if ([1].includes(menuMovSno) && secondLayerInfo && Object.keys(secondLayerInfo).length > 0) {
|
||||
dispatch(
|
||||
sendLogSecondLayer({
|
||||
...secondLayerInfo,
|
||||
@@ -481,7 +475,7 @@ export const sendLogGNB = (menu) => (dispatch, getState) => {
|
||||
dispatch(
|
||||
sendLogDeepLinkFlag({
|
||||
deeplinkId: secondLayerInfo.deeplinkId,
|
||||
flag: secondLayerInfo.deeplinkId ? "Y" : "N",
|
||||
flag: secondLayerInfo.deeplinkId ? 'Y' : 'N',
|
||||
})
|
||||
);
|
||||
}
|
||||
@@ -534,15 +528,10 @@ export const sendLogProductDetail = (params) => (dispatch, getState) => {
|
||||
const { logTpNo } = params;
|
||||
const { entryMenu, nowMenu } = getState().common.menu;
|
||||
|
||||
const menu =
|
||||
logTpNo === LOG_TP_NO.PRODUCT.PRODUCT_DETAIL_IMAGE
|
||||
? entryMenu
|
||||
: params?.entryMenu;
|
||||
const menu = logTpNo === LOG_TP_NO.PRODUCT.PRODUCT_DETAIL_IMAGE ? entryMenu : params?.entryMenu;
|
||||
|
||||
const outDt =
|
||||
logTpNo === LOG_TP_NO.PRODUCT.PRODUCT_DETAIL_IMAGE
|
||||
? ""
|
||||
: formatGMTString(new Date());
|
||||
logTpNo === LOG_TP_NO.PRODUCT.PRODUCT_DETAIL_IMAGE ? '' : formatGMTString(new Date());
|
||||
|
||||
const newParams = {
|
||||
...params,
|
||||
@@ -582,14 +571,11 @@ export const sendLogDetail = (params) => (dispatch, getState) => {
|
||||
const { entryMenu, nowMenu } = getState().common.menu;
|
||||
|
||||
if (!logTpNo || !patncNm || !patnrId) {
|
||||
console.log("[sendLogDetail] invalid params", params);
|
||||
dlog('[sendLogDetail] invalid params', params);
|
||||
return;
|
||||
}
|
||||
|
||||
const outDt =
|
||||
logTpNo === LOG_TP_NO.DETAIL.DETAIL_BUTTON_CLICK
|
||||
? ""
|
||||
: formatGMTString(new Date());
|
||||
const outDt = logTpNo === LOG_TP_NO.DETAIL.DETAIL_BUTTON_CLICK ? '' : formatGMTString(new Date());
|
||||
|
||||
const newParams = {
|
||||
...params,
|
||||
@@ -688,7 +674,7 @@ export const sendLogPartners = (params) => (dispatch, getState) => {
|
||||
const { entryMenu, nowMenu } = getState().common.menu;
|
||||
|
||||
if (!patncNm || !patnrId) {
|
||||
console.log("[sendLogPartners] invalid params", params);
|
||||
dlog('[sendLogPartners] invalid params', params);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -719,7 +705,7 @@ export const sendLogMyPageAlertFlag = (params) => (dispatch, getState) => {
|
||||
const { entryMenu, nowMenu } = getState().common.menu;
|
||||
|
||||
if (!alertFlag) {
|
||||
console.log("[sendLogMyPageAlertFlag] invalid params", params);
|
||||
dlog('[sendLogMyPageAlertFlag] invalid params', params);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -749,7 +735,7 @@ export const sendLogMyPageMyDelete = (params) => (dispatch, getState) => {
|
||||
const { entryMenu, nowMenu } = getState().common.menu;
|
||||
|
||||
if (!cnt) {
|
||||
console.log("[sendLogMyPageMyDelete] invalid params", params);
|
||||
dlog('[sendLogMyPageMyDelete] invalid params', params);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -781,7 +767,7 @@ export const sendLogMyPageNotice = (params) => (dispatch, getState) => {
|
||||
const { entryMenu, nowMenu } = getState().common.menu;
|
||||
|
||||
if (!itemId || !title) {
|
||||
console.log("[sendLogNoticeView] invalid params", params);
|
||||
dlog('[sendLogNoticeView] invalid params', params);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -819,7 +805,7 @@ export const sendLogSearch = (params) => (dispatch, getState) => {
|
||||
const { entryMenu, nowMenu } = getState().common.menu;
|
||||
|
||||
if (!inputFlag || !itemCnt || !keyword || !showCnt || !themeCnt) {
|
||||
console.log("[sendLogSearch] invalid params", params);
|
||||
dlog('[sendLogSearch] invalid params', params);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -869,25 +855,25 @@ export const sendLogSearchClick = (params) => (dispatch, getState) => {
|
||||
const { entryMenu, nowMenu } = getState().common.menu;
|
||||
|
||||
if (!keyword || !patncNm || !patnrId) {
|
||||
console.log("[sendLogSearchClick] invalid params", params);
|
||||
dlog('[sendLogSearchClick] invalid params', params);
|
||||
return;
|
||||
}
|
||||
|
||||
const newParams = {
|
||||
curationId: params?.curationId ?? "",
|
||||
curationNm: params?.curationNm ?? "",
|
||||
dcAfPrice: params?.dcAfPrice ?? "",
|
||||
curationId: params?.curationId ?? '',
|
||||
curationNm: params?.curationNm ?? '',
|
||||
dcAfPrice: params?.dcAfPrice ?? '',
|
||||
entryMenu: entryMenu,
|
||||
keyword,
|
||||
lgCatNm: params?.lgCatNm ?? "",
|
||||
lgCatNm: params?.lgCatNm ?? '',
|
||||
logTpNo: LOG_TP_NO.SEARCH_CLICK,
|
||||
nowMenu: nowMenu,
|
||||
patncNm,
|
||||
patnrId,
|
||||
prdtId: params?.prdtId ?? "",
|
||||
prdtNm: params?.prdtNm ?? "",
|
||||
showId: params?.showId ?? "",
|
||||
showNm: params?.showNm ?? "",
|
||||
prdtId: params?.prdtId ?? '',
|
||||
prdtNm: params?.prdtNm ?? '',
|
||||
showId: params?.showId ?? '',
|
||||
showNm: params?.showNm ?? '',
|
||||
};
|
||||
|
||||
dispatch(postLog(newParams));
|
||||
@@ -925,7 +911,7 @@ export const sendLogUpcomingFlag = (params) => (dispatch, getState) => {
|
||||
const { entryMenu, nowMenu } = getState().common.menu;
|
||||
|
||||
if (!items) {
|
||||
console.log("[sendLogUpcomingFlag] invalid params", params);
|
||||
dlog('[sendLogUpcomingFlag] invalid params', params);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -972,25 +958,17 @@ export const sendLogAlarmPop = (params) => (dispatch, getState) => {
|
||||
const { alarmDt, alarmType, cnt, patncNm, patnrId, showId, showNm } = params;
|
||||
const { entryMenu, nowMenu } = getState().common.menu;
|
||||
|
||||
if (
|
||||
!alarmDt ||
|
||||
!alarmType ||
|
||||
!cnt ||
|
||||
!patncNm ||
|
||||
!patnrId ||
|
||||
!showId ||
|
||||
!showNm
|
||||
) {
|
||||
console.log("[sendLogAlarmPop] invalid params", params);
|
||||
if (!alarmDt || !alarmType || !cnt || !patncNm || !patnrId || !showId || !showNm) {
|
||||
dlog('[sendLogAlarmPop] invalid params', params);
|
||||
return;
|
||||
}
|
||||
|
||||
const newParams = {
|
||||
...params,
|
||||
entryMenu: entryMenu,
|
||||
hstNm: params?.hstNm ?? "",
|
||||
lgCatCd: params?.lgCatCd ?? "",
|
||||
lgCatNm: params?.lgCatNm ?? "",
|
||||
hstNm: params?.hstNm ?? '',
|
||||
lgCatCd: params?.lgCatCd ?? '',
|
||||
lgCatNm: params?.lgCatNm ?? '',
|
||||
logTpNo: LOG_TP_NO.ALARM_POP,
|
||||
nowMenu: nowMenu,
|
||||
};
|
||||
@@ -1032,29 +1010,20 @@ export const sendLogAlarmPop = (params) => (dispatch, getState) => {
|
||||
* (M) showNm 방송 이름
|
||||
*/
|
||||
export const sendLogAlarmClick = (params) => (dispatch, getState) => {
|
||||
const { alarmDt, alarmType, clickFlag, cnt, logTpNo, patnrId, showId } =
|
||||
params;
|
||||
const { alarmDt, alarmType, clickFlag, cnt, logTpNo, patnrId, showId } = params;
|
||||
const { entryMenu, nowMenu } = getState().common.menu;
|
||||
|
||||
if (
|
||||
!alarmDt ||
|
||||
!alarmType ||
|
||||
!clickFlag ||
|
||||
!cnt ||
|
||||
!logTpNo ||
|
||||
!patnrId ||
|
||||
!showId
|
||||
) {
|
||||
console.log("[sendLogAlarmClick] invalid params", params);
|
||||
if (!alarmDt || !alarmType || !clickFlag || !cnt || !logTpNo || !patnrId || !showId) {
|
||||
dlog('[sendLogAlarmClick] invalid params', params);
|
||||
return;
|
||||
}
|
||||
|
||||
const newParams = {
|
||||
...params,
|
||||
entryMenu: entryMenu,
|
||||
hstNm: params?.hstNm ?? "",
|
||||
lgCatCd: params?.lgCatCd ?? "",
|
||||
lgCatNm: params?.lgCatNm ?? "",
|
||||
hstNm: params?.hstNm ?? '',
|
||||
lgCatCd: params?.lgCatCd ?? '',
|
||||
lgCatNm: params?.lgCatNm ?? '',
|
||||
nowMenu: nowMenu,
|
||||
};
|
||||
|
||||
@@ -1177,7 +1146,7 @@ export const sendLogTerms = (params) => (dispatch, getState) => {
|
||||
const { entryMenu, nowMenu } = getState().common.menu;
|
||||
|
||||
if (!logTpNo) {
|
||||
console.log("[sendLogTerms] invalid params", params);
|
||||
dlog('[sendLogTerms] invalid params', params);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1208,7 +1177,7 @@ export const sendLogLgAccountLogin = (params) => (dispatch, getState) => {
|
||||
const { entryMenu, nowMenu } = getState().common.menu;
|
||||
|
||||
if (!lginTpNm || !usrNo) {
|
||||
console.log("[sendLogLgAccountLogin] invalid params", params);
|
||||
dlog('[sendLogLgAccountLogin] invalid params', params);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1239,7 +1208,7 @@ export const sendLogOrderBtnClick = (params) => (dispatch, getState) => {
|
||||
const { entryMenu, nowMenu } = getState().common.menu;
|
||||
|
||||
if (!btnNm) {
|
||||
console.log("[sendLogOrderBtnClick] invalid params", params);
|
||||
dlog('[sendLogOrderBtnClick] invalid params', params);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1272,7 +1241,7 @@ export const sendLogOrderChange = (params) => (dispatch, getState) => {
|
||||
const { entryMenu, nowMenu } = getState().common.menu;
|
||||
|
||||
if (!reqRsn || !reqTpNm) {
|
||||
console.log("[sendLogOrderChange] invalid params", params);
|
||||
dlog('[sendLogOrderChange] invalid params', params);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1315,7 +1284,7 @@ export const sendLogCouponUse = (params) => (dispatch, getState) => {
|
||||
// const {} = params
|
||||
const { entryMenu, nowMenu } = getState().common.menu;
|
||||
// if() {
|
||||
// console.log('[sendLogCouponUse] invalid params', params)
|
||||
// dlog('[sendLogCouponUse] invalid params', params)
|
||||
// }
|
||||
|
||||
const newParams = {
|
||||
@@ -1364,29 +1333,11 @@ export const sendLogCouponUse = (params) => (dispatch, getState) => {
|
||||
* (M) qty 수량
|
||||
*/
|
||||
export const sendLogPaymentEntry = (params) => (dispatch, getState) => {
|
||||
const {
|
||||
cartTpSno,
|
||||
dcAftrPrc,
|
||||
dcBefPrc,
|
||||
patncNm,
|
||||
patnrId,
|
||||
prodId,
|
||||
prodNm,
|
||||
qty,
|
||||
} = params;
|
||||
const { cartTpSno, dcAftrPrc, dcBefPrc, patncNm, patnrId, prodId, prodNm, qty } = params;
|
||||
const { entryMenu, nowMenu } = getState().common.menu;
|
||||
|
||||
if (
|
||||
!cartTpSno ||
|
||||
!dcAftrPrc ||
|
||||
!dcBefPrc ||
|
||||
!patncNm ||
|
||||
!patnrId ||
|
||||
!prodId ||
|
||||
!prodNm ||
|
||||
!qty
|
||||
) {
|
||||
console.log("[sendLogPaymentEntry] invalid params", params);
|
||||
if (!cartTpSno || !dcAftrPrc || !dcBefPrc || !patncNm || !patnrId || !prodId || !prodNm || !qty) {
|
||||
dlog('[sendLogPaymentEntry] invalid params', params);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1438,17 +1389,7 @@ export const sendLogPaymentEntry = (params) => (dispatch, getState) => {
|
||||
* (M) usrNo 사용자 번호
|
||||
*/
|
||||
export const sendLogPaymentComplete = (params) => (dispatch, getState) => {
|
||||
const {
|
||||
cartTpSno,
|
||||
dcAftrPrc,
|
||||
dcBefPrc,
|
||||
patncNm,
|
||||
patnrId,
|
||||
prodId,
|
||||
prodNm,
|
||||
qty,
|
||||
usrNo,
|
||||
} = params;
|
||||
const { cartTpSno, dcAftrPrc, dcBefPrc, patncNm, patnrId, prodId, prodNm, qty, usrNo } = params;
|
||||
const { entryMenu, nowMenu } = getState().common.menu;
|
||||
|
||||
if (
|
||||
@@ -1462,7 +1403,7 @@ export const sendLogPaymentComplete = (params) => (dispatch, getState) => {
|
||||
!qty ||
|
||||
!usrNo
|
||||
) {
|
||||
console.log("[sendLogPaymentComplete] invalid params", params);
|
||||
dlog('[sendLogPaymentComplete] invalid params', params);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1506,22 +1447,22 @@ export const sendLogFeaturedBrands = (params) => (dispatch, getState) => {
|
||||
const { entryMenu, nowMenu } = getState().common.menu;
|
||||
|
||||
if (!patncNm || !patnrId) {
|
||||
console.log("[sendLogFeaturedBrands] invalid params", params);
|
||||
dlog('[sendLogFeaturedBrands] invalid params', params);
|
||||
return;
|
||||
}
|
||||
|
||||
const newParams = {
|
||||
catCd: params.catCd ?? "",
|
||||
catNm: params.catNm ?? "",
|
||||
crtrId: params.crtrId ?? "",
|
||||
crtrNm: params.crtrNm ?? "",
|
||||
catCd: params.catCd ?? '',
|
||||
catNm: params.catNm ?? '',
|
||||
crtrId: params.crtrId ?? '',
|
||||
crtrNm: params.crtrNm ?? '',
|
||||
entryMenu: entryMenu,
|
||||
logTpNo: LOG_TP_NO.BRANDS,
|
||||
nowMenu: nowMenu,
|
||||
patncNm,
|
||||
patnrId,
|
||||
srsId: params.srsId ?? "",
|
||||
srsNm: params.srsNm ?? "",
|
||||
srsId: params.srsId ?? '',
|
||||
srsNm: params.srsNm ?? '',
|
||||
};
|
||||
|
||||
dispatch(postLog(newParams));
|
||||
@@ -1543,7 +1484,7 @@ export const sendLogMyInfoEdit = (params) => (dispatch, getState) => {
|
||||
const { entryMenu, nowMenu } = getState().common.menu;
|
||||
|
||||
if (!btnNm) {
|
||||
console.log("[sendLogMyInfoEdit] invalid params", params);
|
||||
dlog('[sendLogMyInfoEdit] invalid params', params);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1572,7 +1513,7 @@ export const sendLogCheckOutBtnClick = (params) => (dispatch, getState) => {
|
||||
const { entryMenu, nowMenu } = getState().common.menu;
|
||||
|
||||
if (!btnNm) {
|
||||
console.log("[sendLogCheckOutBtnClick] invalid params", params);
|
||||
dlog('[sendLogCheckOutBtnClick] invalid params', params);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1597,19 +1538,19 @@ export const sendLogTotalRecommend = (params) => (dispatch, getState) => {
|
||||
|
||||
const macAddr = macAddress?.wired ? macAddress?.wired : macAddress?.wifi;
|
||||
|
||||
if (typeof window === "object" && !window.PalmSystem) {
|
||||
localMacAddress = "00:1A:2B:3C:4D:5E";
|
||||
if (typeof window === 'object' && !window.PalmSystem) {
|
||||
localMacAddress = '00:1A:2B:3C:4D:5E';
|
||||
}
|
||||
|
||||
const logCreateTime = new Date().toISOString();
|
||||
|
||||
// console.log("#params", params);
|
||||
// dlog("#params", params);
|
||||
|
||||
const newParams = {
|
||||
...params,
|
||||
userNumber: userNumber,
|
||||
macAddr: macAddr ? macAddr : localMacAddress,
|
||||
entryMenu: entryMenu ? entryMenu : "APP",
|
||||
entryMenu: entryMenu ? entryMenu : 'APP',
|
||||
logCreateTime,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user