탈퇴시 로그적재 수정
This commit is contained in:
@@ -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,
|
||||||
@@ -289,25 +289,28 @@ export const getDeviceId = (onComplete) => (dispatch, getState) => {
|
|||||||
|
|
||||||
export const getTermsAgreeYn = () => (dispatch, getState) => {
|
export const getTermsAgreeYn = () => (dispatch, getState) => {
|
||||||
dispatch({ type: types.GET_TERMS_AGREE_YN_START });
|
dispatch({ type: types.GET_TERMS_AGREE_YN_START });
|
||||||
|
|
||||||
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 선택약관을 찾을 수 없습니다.");
|
||||||
@@ -334,7 +337,7 @@ export const getTermsAgreeYn = () => (dispatch, getState) => {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return acc;
|
return acc;
|
||||||
}, {});
|
}, {});
|
||||||
|
|
||||||
dispatch({
|
dispatch({
|
||||||
type: types.GET_TERMS_AGREE_YN_SUCCESS,
|
type: types.GET_TERMS_AGREE_YN_SUCCESS,
|
||||||
@@ -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) => {
|
||||||
// 1. optionalTermsPopupFlow 업데이트 (TV 환경용)
|
console.log(`[CommonActions] 선택약관 통합 상태 업데이트: ${agreed}`);
|
||||||
dispatch(setOptionalTermsUserDecision(agreed ? 'agreed' : 'declined'));
|
|
||||||
dispatch(setOptionalTermsPopupShown(true));
|
// 1. optionalTermsPopupFlow 업데이트 (TV 환경용)
|
||||||
|
dispatch(setOptionalTermsUserDecision(agreed ? "agreed" : "declined"));
|
||||||
// 2. 기본 optionalTermsAgree 상태 직접 업데이트 (API 호출 없이)
|
dispatch(setOptionalTermsPopupShown(true));
|
||||||
dispatch({
|
|
||||||
type: types.UPDATE_OPTIONAL_TERMS_AGREE_DIRECT,
|
// 2. 기본 optionalTermsAgree 상태 직접 업데이트 (API 호출 없이)
|
||||||
payload: agreed
|
dispatch({
|
||||||
});
|
type: types.UPDATE_OPTIONAL_TERMS_AGREE_DIRECT,
|
||||||
|
payload: agreed,
|
||||||
// 3. termsAgreementStatus도 동기화
|
});
|
||||||
dispatch({
|
|
||||||
type: types.UPDATE_TERMS_AGREEMENT_STATUS_DIRECT,
|
// 3. termsAgreementStatus도 동기화
|
||||||
payload: { MST00405: agreed }
|
dispatch({
|
||||||
});
|
type: types.UPDATE_TERMS_AGREEMENT_STATUS_DIRECT,
|
||||||
};
|
payload: { MST00405: agreed },
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|||||||
@@ -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";
|
||||||
|
|||||||
Reference in New Issue
Block a user