[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,10 +1,15 @@
|
||||
import axios from "axios";
|
||||
import axios from 'axios';
|
||||
|
||||
import { URLS } from "../api/apiConfig";
|
||||
import { TAxios } from "../api/TAxios";
|
||||
import { GET_MY_INFO_ORDER_SEARCH_LIMIT } from "../utils/Config";
|
||||
import { types } from "./actionTypes";
|
||||
import { changeAppStatus, getTermsAgreeYn } from "./commonActions";
|
||||
import { URLS } from '../api/apiConfig';
|
||||
import { TAxios } from '../api/TAxios';
|
||||
import { GET_MY_INFO_ORDER_SEARCH_LIMIT } from '../utils/Config';
|
||||
import { types } from './actionTypes';
|
||||
import { changeAppStatus, getTermsAgreeYn } from './commonActions';
|
||||
import { createDebugHelpers } from '../utils/debug';
|
||||
|
||||
// 디버그 헬퍼 설정
|
||||
const DEBUG_MODE = false;
|
||||
const { dlog, dwarn, derror } = createDebugHelpers(DEBUG_MODE);
|
||||
|
||||
// 회원 주문 정보 조회 (IF-LGSP-340)
|
||||
let getMyinfoOrderSearchKey = null;
|
||||
@@ -30,14 +35,12 @@ export const getMyinfoOrderSearch =
|
||||
}
|
||||
|
||||
if (loading) {
|
||||
dispatch(
|
||||
changeAppStatus({ showLoadingPanel: { show: true, type: "wait" } })
|
||||
);
|
||||
dispatch(changeAppStatus({ showLoadingPanel: { show: true, type: 'wait' } }));
|
||||
}
|
||||
|
||||
let currentKey = key;
|
||||
const onSuccess = (response) => {
|
||||
console.log("getMyinfoOrderSearch onSuccess ", response.data);
|
||||
dlog('getMyinfoOrderSearch onSuccess ', response.data);
|
||||
|
||||
if (orderInfoDataIdx === 1) {
|
||||
getMyinfoOrderSearchKey = new Date();
|
||||
@@ -69,7 +72,7 @@ export const getMyinfoOrderSearch =
|
||||
};
|
||||
|
||||
const onFail = (error) => {
|
||||
console.error("getMyinfoOrderSearch onFail ", error);
|
||||
derror('getMyinfoOrderSearch onFail ', error);
|
||||
if (loading) {
|
||||
dispatch(changeAppStatus({ showLoadingPanel: { show: false } }));
|
||||
}
|
||||
@@ -81,7 +84,7 @@ export const getMyinfoOrderSearch =
|
||||
TAxios(
|
||||
dispatch,
|
||||
getState,
|
||||
"get",
|
||||
'get',
|
||||
URLS.GET_MY_INFO_ORDER_SEARCH,
|
||||
{
|
||||
mbrNo,
|
||||
@@ -101,7 +104,7 @@ export const continueGetMyinfoOrderSearch =
|
||||
(dispatch, getState) => {
|
||||
const state = getState();
|
||||
const orderSearchParams = state.order.orderSearchParams;
|
||||
const isCancelOrder = orderSearchParams.cancelOrderYn === "Y";
|
||||
const isCancelOrder = orderSearchParams.cancelOrderYn === 'Y';
|
||||
const orderInfoData = isCancelOrder
|
||||
? state.order.cancelOrderInfoData
|
||||
: state.order.orderInfoData;
|
||||
@@ -133,74 +136,72 @@ const clearMyinfoOrderSearch = () => ({
|
||||
});
|
||||
|
||||
// 회원 주문 상세 정보 조회 (IF-LGSP-341)
|
||||
export const getMyinfoOrderDetailSearch =
|
||||
(params, callback) => (dispatch, getState) => {
|
||||
const { mbrNo, ordNo, prdtId } = params;
|
||||
export const getMyinfoOrderDetailSearch = (params, callback) => (dispatch, getState) => {
|
||||
const { mbrNo, ordNo, prdtId } = params;
|
||||
|
||||
const onSuccess = (response) => {
|
||||
console.log("getMyinfoOrderDetailSearch onSuccess ", response.data);
|
||||
const onSuccess = (response) => {
|
||||
dlog('getMyinfoOrderDetailSearch onSuccess ', response.data);
|
||||
|
||||
dispatch({
|
||||
type: types.GET_MY_INFO_ORDER_DETAIL_SEARCH,
|
||||
payload: response.data.data,
|
||||
});
|
||||
dispatch({
|
||||
type: types.GET_MY_INFO_ORDER_DETAIL_SEARCH,
|
||||
payload: response.data.data,
|
||||
});
|
||||
|
||||
if (callback) callback(response.data);
|
||||
};
|
||||
|
||||
const onFail = (error) => {
|
||||
console.error("getMyinfoOrderDetailSearch onFail ", error);
|
||||
};
|
||||
|
||||
TAxios(
|
||||
dispatch,
|
||||
getState,
|
||||
"get",
|
||||
URLS.GET_MY_INFO_ORDER_DETAIL_SEARCH,
|
||||
{ mbrNo, ordNo, prdtId },
|
||||
{},
|
||||
onSuccess,
|
||||
onFail
|
||||
);
|
||||
if (callback) callback(response.data);
|
||||
};
|
||||
|
||||
export const getMyinfoOrderShippingSearch =
|
||||
(params, callback) => (dispatch, getState) => {
|
||||
const { mbrNo, ordNo, patnrId, prdtId, prodSno } = params;
|
||||
|
||||
const onSuccess = (response) => {
|
||||
console.log("getMyinfoOrderShippingSearch onSuccess ", response.data);
|
||||
|
||||
dispatch({
|
||||
type: types.GET_MY_INFO_ORDER_SHIPPING_SEARCH,
|
||||
payload: response.data.data,
|
||||
});
|
||||
|
||||
if (callback) callback(response.data);
|
||||
};
|
||||
|
||||
const onFail = (error) => {
|
||||
console.error("getMyinfoOrderShippingSearch onFail ", error);
|
||||
};
|
||||
|
||||
TAxios(
|
||||
dispatch,
|
||||
getState,
|
||||
"get",
|
||||
URLS.GET_MY_INFO_ORDER_SHIPPING_SEARCH,
|
||||
{ mbrNo, ordNo, patnrId, prdtId, prodSno },
|
||||
{},
|
||||
onSuccess,
|
||||
onFail
|
||||
);
|
||||
const onFail = (error) => {
|
||||
derror('getMyinfoOrderDetailSearch onFail ', error);
|
||||
};
|
||||
|
||||
TAxios(
|
||||
dispatch,
|
||||
getState,
|
||||
'get',
|
||||
URLS.GET_MY_INFO_ORDER_DETAIL_SEARCH,
|
||||
{ mbrNo, ordNo, prdtId },
|
||||
{},
|
||||
onSuccess,
|
||||
onFail
|
||||
);
|
||||
};
|
||||
|
||||
export const getMyinfoOrderShippingSearch = (params, callback) => (dispatch, getState) => {
|
||||
const { mbrNo, ordNo, patnrId, prdtId, prodSno } = params;
|
||||
|
||||
const onSuccess = (response) => {
|
||||
dlog('getMyinfoOrderShippingSearch onSuccess ', response.data);
|
||||
|
||||
dispatch({
|
||||
type: types.GET_MY_INFO_ORDER_SHIPPING_SEARCH,
|
||||
payload: response.data.data,
|
||||
});
|
||||
|
||||
if (callback) callback(response.data);
|
||||
};
|
||||
|
||||
const onFail = (error) => {
|
||||
derror('getMyinfoOrderShippingSearch onFail ', error);
|
||||
};
|
||||
|
||||
TAxios(
|
||||
dispatch,
|
||||
getState,
|
||||
'get',
|
||||
URLS.GET_MY_INFO_ORDER_SHIPPING_SEARCH,
|
||||
{ mbrNo, ordNo, patnrId, prdtId, prodSno },
|
||||
{},
|
||||
onSuccess,
|
||||
onFail
|
||||
);
|
||||
};
|
||||
|
||||
// 구매 약관 동의 (IF-LGSP-360)
|
||||
export const setPurchaseTermsAgree = (params) => (dispatch, getState) => {
|
||||
const { mbrNo, termsList } = params;
|
||||
|
||||
const onSuccess = (response) => {
|
||||
console.log("setPurchaseTermsAgree onSuccess ", response.data);
|
||||
dlog('setPurchaseTermsAgree onSuccess ', response.data);
|
||||
|
||||
dispatch({
|
||||
type: types.SET_PURCHASE_TERMS_AGREE,
|
||||
@@ -212,13 +213,13 @@ export const setPurchaseTermsAgree = (params) => (dispatch, getState) => {
|
||||
};
|
||||
|
||||
const onFail = (error) => {
|
||||
console.error("setPurchaseTermsAgree onFail ", error);
|
||||
derror('setPurchaseTermsAgree onFail ', error);
|
||||
};
|
||||
|
||||
TAxios(
|
||||
dispatch,
|
||||
getState,
|
||||
"post",
|
||||
'post',
|
||||
URLS.SET_PURCHASE_TERMS_AGREE,
|
||||
{},
|
||||
{ mbrNo, termsList },
|
||||
@@ -232,7 +233,7 @@ export const setPurchasetermsWithdraw = (params) => (dispatch, getState) => {
|
||||
const { mbrNo, termsList } = params;
|
||||
|
||||
const onSuccess = (response) => {
|
||||
console.log("setPurchasetermsWithdraw onSuccess ", response.data);
|
||||
dlog('setPurchasetermsWithdraw onSuccess ', response.data);
|
||||
|
||||
dispatch({
|
||||
type: types.SET_PURCHASE_TERMS_WITHDRAW,
|
||||
@@ -244,13 +245,13 @@ export const setPurchasetermsWithdraw = (params) => (dispatch, getState) => {
|
||||
};
|
||||
|
||||
const onFail = (error) => {
|
||||
console.error("setPurchasetermsWithdraw onFail ", error);
|
||||
derror('setPurchasetermsWithdraw onFail ', error);
|
||||
};
|
||||
|
||||
TAxios(
|
||||
dispatch,
|
||||
getState,
|
||||
"post",
|
||||
'post',
|
||||
URLS.SET_PURCHASE_TERMS_WITHDRAW,
|
||||
{},
|
||||
{ mbrNo, termsList },
|
||||
|
||||
Reference in New Issue
Block a user