탈퇴시 로그적재 수정

This commit is contained in:
opacity@t-win.kr
2025-09-11 16:31:28 +09:00
parent bc7715b58b
commit 566b686056
2 changed files with 42 additions and 37 deletions

View File

@@ -32,7 +32,7 @@ export const gnbOpened = (status) => ({
}); });
export const setShowPopup = (config) => { export const setShowPopup = (config) => {
const payload = typeof config === 'string' ? { activePopup: config } : config; const payload = typeof config === "string" ? { activePopup: config } : config;
return { return {
type: types.SET_SHOW_POPUP, type: types.SET_SHOW_POPUP,
payload, payload,
@@ -293,21 +293,24 @@ export const getTermsAgreeYn = () => (dispatch, getState) => {
try { try {
const { terms } = getState().home.termsData.data; const { terms } = getState().home.termsData.data;
console.log("getTermsAgreeYn", terms.map(term => ({ console.log(
trmsId: term.trmsId, "getTermsAgreeYn",
trmsTpCd: term.trmsTpCd, terms.map((term) => ({
trmsAgrFlag: term.trmsAgrFlag, trmsId: term.trmsId,
trmsPopFlag: term.trmsPopFlag, trmsTpCd: term.trmsTpCd,
}))); trmsAgrFlag: term.trmsAgrFlag,
trmsPopFlag: term.trmsPopFlag,
}))
);
// MST00405 선택약관 정보만 따로 출력 // MST00405 선택약관 정보만 따로 출력
const optionalTerm = terms.find(term => term.trmsTpCd === 'MST00405'); const optionalTerm = terms.find((term) => term.trmsTpCd === "MST00405");
if (optionalTerm) { if (optionalTerm) {
console.log("getTermsAgreeYn MST00405 선택약관:", { console.log("getTermsAgreeYn MST00405 선택약관:", {
trmsId: optionalTerm.trmsId, trmsId: optionalTerm.trmsId,
trmsTpCd: optionalTerm.trmsTpCd, trmsTpCd: optionalTerm.trmsTpCd,
trmsAgrFlag: optionalTerm.trmsAgrFlag, trmsAgrFlag: optionalTerm.trmsAgrFlag,
trmsPopFlag: optionalTerm.trmsPopFlag trmsPopFlag: optionalTerm.trmsPopFlag,
}); });
} else { } else {
console.log("getTermsAgreeYn MST00405 선택약관을 찾을 수 없습니다."); console.log("getTermsAgreeYn MST00405 선택약관을 찾을 수 없습니다.");
@@ -695,8 +698,8 @@ export const getConnectionInfo = () => (dispatch, getState) => {
lunaSend.getConnectionInfo({ lunaSend.getConnectionInfo({
onSuccess: (res) => { onSuccess: (res) => {
console.log("lunasend getConnectionStatus", res); console.log("lunasend getConnectionStatus", res);
if (res && res.retrunValue) { if (res && res.returnValue) {
const macAddress = res?.wiredInfo.macAddress; const macAddress = res?.wiredInfo?.macAddress;
console.log("macAddress...........", macAddress, res); console.log("macAddress...........", macAddress, res);
} }
}, },
@@ -758,35 +761,37 @@ export const resetOptionalTermsSession = () => ({
// 선택약관 동의 처리를 위한 헬퍼 함수 // 선택약관 동의 처리를 위한 헬퍼 함수
export const handleOptionalTermsAgree = () => (dispatch) => { export const handleOptionalTermsAgree = () => (dispatch) => {
console.log('[CommonActions] 선택약관 동의 처리'); console.log("[CommonActions] 선택약관 동의 처리");
dispatch(setOptionalTermsUserDecision('agreed')); dispatch(setOptionalTermsUserDecision("agreed"));
dispatch(setOptionalTermsPopupShown(true)); dispatch(setOptionalTermsPopupShown(true));
}; };
// 선택약관 거절 처리를 위한 헬퍼 함수 // 선택약관 거절 처리를 위한 헬퍼 함수
export const handleOptionalTermsDecline = () => (dispatch) => { export const handleOptionalTermsDecline = () => (dispatch) => {
console.log('[CommonActions] 선택약관 거절 처리'); console.log("[CommonActions] 선택약관 거절 처리");
dispatch(setOptionalTermsUserDecision('declined')); dispatch(setOptionalTermsUserDecision("declined"));
dispatch(setOptionalTermsPopupShown(true)); dispatch(setOptionalTermsPopupShown(true));
}; };
// 선택약관 상태 통합 업데이트 (TV 환경 최적화 - API 호출 없이 즉시 반영) // 선택약관 상태 통합 업데이트 (TV 환경 최적화 - API 호출 없이 즉시 반영)
export const updateOptionalTermsAgreement = (agreed = true) => (dispatch) => { export const updateOptionalTermsAgreement =
console.log(`[CommonActions] 선택약관 통합 상태 업데이트: ${agreed}`); (agreed = true) =>
(dispatch) => {
console.log(`[CommonActions] 선택약관 통합 상태 업데이트: ${agreed}`);
// 1. optionalTermsPopupFlow 업데이트 (TV 환경용) // 1. optionalTermsPopupFlow 업데이트 (TV 환경용)
dispatch(setOptionalTermsUserDecision(agreed ? 'agreed' : 'declined')); dispatch(setOptionalTermsUserDecision(agreed ? "agreed" : "declined"));
dispatch(setOptionalTermsPopupShown(true)); dispatch(setOptionalTermsPopupShown(true));
// 2. 기본 optionalTermsAgree 상태 직접 업데이트 (API 호출 없이) // 2. 기본 optionalTermsAgree 상태 직접 업데이트 (API 호출 없이)
dispatch({ dispatch({
type: types.UPDATE_OPTIONAL_TERMS_AGREE_DIRECT, type: types.UPDATE_OPTIONAL_TERMS_AGREE_DIRECT,
payload: agreed payload: agreed,
}); });
// 3. termsAgreementStatus도 동기화 // 3. termsAgreementStatus도 동기화
dispatch({ dispatch({
type: types.UPDATE_TERMS_AGREEMENT_STATUS_DIRECT, type: types.UPDATE_TERMS_AGREEMENT_STATUS_DIRECT,
payload: { MST00405: agreed } payload: { MST00405: agreed },
}); });
}; };

View File

@@ -190,7 +190,7 @@ export const setMyTermsWithdraw =
const macAddress = getState().common.macAddress; const macAddress = getState().common.macAddress;
const userNumber = getState().common.appStatus.loginUserData?.userNumber; const userNumber = getState().common.appStatus.loginUserData?.userNumber;
const macAddr = macAddress?.wired ? macAddress?.wired : macAddress?.wifi; const macAddr = macAddress?.wired || macAddress?.wifi || macAddress?.p2p;
if (typeof window === "object" && !window.PalmSystem) { if (typeof window === "object" && !window.PalmSystem) {
localMacAddress = "00:1A:2B:3C:4D:5E"; localMacAddress = "00:1A:2B:3C:4D:5E";