탈퇴시 로그적재 수정
This commit is contained in:
@@ -32,7 +32,7 @@ export const gnbOpened = (status) => ({
|
||||
});
|
||||
|
||||
export const setShowPopup = (config) => {
|
||||
const payload = typeof config === 'string' ? { activePopup: config } : config;
|
||||
const payload = typeof config === "string" ? { activePopup: config } : config;
|
||||
return {
|
||||
type: types.SET_SHOW_POPUP,
|
||||
payload,
|
||||
@@ -289,25 +289,28 @@ export const getDeviceId = (onComplete) => (dispatch, getState) => {
|
||||
|
||||
export const getTermsAgreeYn = () => (dispatch, getState) => {
|
||||
dispatch({ type: types.GET_TERMS_AGREE_YN_START });
|
||||
|
||||
|
||||
try {
|
||||
const { terms } = getState().home.termsData.data;
|
||||
|
||||
console.log("getTermsAgreeYn", terms.map(term => ({
|
||||
trmsId: term.trmsId,
|
||||
trmsTpCd: term.trmsTpCd,
|
||||
trmsAgrFlag: term.trmsAgrFlag,
|
||||
trmsPopFlag: term.trmsPopFlag,
|
||||
})));
|
||||
console.log(
|
||||
"getTermsAgreeYn",
|
||||
terms.map((term) => ({
|
||||
trmsId: term.trmsId,
|
||||
trmsTpCd: term.trmsTpCd,
|
||||
trmsAgrFlag: term.trmsAgrFlag,
|
||||
trmsPopFlag: term.trmsPopFlag,
|
||||
}))
|
||||
);
|
||||
|
||||
// MST00405 선택약관 정보만 따로 출력
|
||||
const optionalTerm = terms.find(term => term.trmsTpCd === 'MST00405');
|
||||
const optionalTerm = terms.find((term) => term.trmsTpCd === "MST00405");
|
||||
if (optionalTerm) {
|
||||
console.log("getTermsAgreeYn MST00405 선택약관:", {
|
||||
trmsId: optionalTerm.trmsId,
|
||||
trmsTpCd: optionalTerm.trmsTpCd,
|
||||
trmsAgrFlag: optionalTerm.trmsAgrFlag,
|
||||
trmsPopFlag: optionalTerm.trmsPopFlag
|
||||
trmsPopFlag: optionalTerm.trmsPopFlag,
|
||||
});
|
||||
} else {
|
||||
console.log("getTermsAgreeYn MST00405 선택약관을 찾을 수 없습니다.");
|
||||
@@ -334,7 +337,7 @@ export const getTermsAgreeYn = () => (dispatch, getState) => {
|
||||
break;
|
||||
}
|
||||
return acc;
|
||||
}, {});
|
||||
}, {});
|
||||
|
||||
dispatch({
|
||||
type: types.GET_TERMS_AGREE_YN_SUCCESS,
|
||||
@@ -695,8 +698,8 @@ export const getConnectionInfo = () => (dispatch, getState) => {
|
||||
lunaSend.getConnectionInfo({
|
||||
onSuccess: (res) => {
|
||||
console.log("lunasend getConnectionStatus", res);
|
||||
if (res && res.retrunValue) {
|
||||
const macAddress = res?.wiredInfo.macAddress;
|
||||
if (res && res.returnValue) {
|
||||
const macAddress = res?.wiredInfo?.macAddress;
|
||||
console.log("macAddress...........", macAddress, res);
|
||||
}
|
||||
},
|
||||
@@ -758,35 +761,37 @@ export const resetOptionalTermsSession = () => ({
|
||||
|
||||
// 선택약관 동의 처리를 위한 헬퍼 함수
|
||||
export const handleOptionalTermsAgree = () => (dispatch) => {
|
||||
console.log('[CommonActions] 선택약관 동의 처리');
|
||||
dispatch(setOptionalTermsUserDecision('agreed'));
|
||||
console.log("[CommonActions] 선택약관 동의 처리");
|
||||
dispatch(setOptionalTermsUserDecision("agreed"));
|
||||
dispatch(setOptionalTermsPopupShown(true));
|
||||
};
|
||||
|
||||
// 선택약관 거절 처리를 위한 헬퍼 함수
|
||||
export const handleOptionalTermsDecline = () => (dispatch) => {
|
||||
console.log('[CommonActions] 선택약관 거절 처리');
|
||||
dispatch(setOptionalTermsUserDecision('declined'));
|
||||
console.log("[CommonActions] 선택약관 거절 처리");
|
||||
dispatch(setOptionalTermsUserDecision("declined"));
|
||||
dispatch(setOptionalTermsPopupShown(true));
|
||||
};
|
||||
|
||||
// 선택약관 상태 통합 업데이트 (TV 환경 최적화 - API 호출 없이 즉시 반영)
|
||||
export const updateOptionalTermsAgreement = (agreed = true) => (dispatch) => {
|
||||
console.log(`[CommonActions] 선택약관 통합 상태 업데이트: ${agreed}`);
|
||||
|
||||
// 1. optionalTermsPopupFlow 업데이트 (TV 환경용)
|
||||
dispatch(setOptionalTermsUserDecision(agreed ? 'agreed' : 'declined'));
|
||||
dispatch(setOptionalTermsPopupShown(true));
|
||||
|
||||
// 2. 기본 optionalTermsAgree 상태 직접 업데이트 (API 호출 없이)
|
||||
dispatch({
|
||||
type: types.UPDATE_OPTIONAL_TERMS_AGREE_DIRECT,
|
||||
payload: agreed
|
||||
});
|
||||
|
||||
// 3. termsAgreementStatus도 동기화
|
||||
dispatch({
|
||||
type: types.UPDATE_TERMS_AGREEMENT_STATUS_DIRECT,
|
||||
payload: { MST00405: agreed }
|
||||
});
|
||||
};
|
||||
export const updateOptionalTermsAgreement =
|
||||
(agreed = true) =>
|
||||
(dispatch) => {
|
||||
console.log(`[CommonActions] 선택약관 통합 상태 업데이트: ${agreed}`);
|
||||
|
||||
// 1. optionalTermsPopupFlow 업데이트 (TV 환경용)
|
||||
dispatch(setOptionalTermsUserDecision(agreed ? "agreed" : "declined"));
|
||||
dispatch(setOptionalTermsPopupShown(true));
|
||||
|
||||
// 2. 기본 optionalTermsAgree 상태 직접 업데이트 (API 호출 없이)
|
||||
dispatch({
|
||||
type: types.UPDATE_OPTIONAL_TERMS_AGREE_DIRECT,
|
||||
payload: agreed,
|
||||
});
|
||||
|
||||
// 3. termsAgreementStatus도 동기화
|
||||
dispatch({
|
||||
type: types.UPDATE_TERMS_AGREEMENT_STATUS_DIRECT,
|
||||
payload: { MST00405: agreed },
|
||||
});
|
||||
};
|
||||
|
||||
@@ -190,7 +190,7 @@ export const setMyTermsWithdraw =
|
||||
const macAddress = getState().common.macAddress;
|
||||
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) {
|
||||
localMacAddress = "00:1A:2B:3C:4D:5E";
|
||||
|
||||
Reference in New Issue
Block a user