[251209] feat: 약관미동의시 처리-1
🕐 커밋 시간: 2025. 12. 09. 17:17:23 📊 변경 통계: • 총 파일: 1개 • 추가: +16줄 📝 수정된 파일: ~ com.twin.app.shoptime/src/actions/homeActions.js 🔧 주요 변경 내용: • 핵심 비즈니스 로직 개선
This commit is contained in:
@@ -75,6 +75,22 @@ export const getHomeTerms = (props) => (dispatch, getState) => {
|
|||||||
|
|
||||||
const onFail = (error) => {
|
const onFail = (error) => {
|
||||||
derror('getHomeTerms onFail ', error);
|
derror('getHomeTerms onFail ', error);
|
||||||
|
|
||||||
|
// 약관 미동의(retCode 501)로 GET_HOME_TERMS가 실패하면
|
||||||
|
// introTermsAgree를 명시적으로 false로 내려 앱이 IntroPanel을 띄우도록 한다.
|
||||||
|
const retCode = error?.data?.retCode ?? error?.retCode;
|
||||||
|
if (retCode === 501) {
|
||||||
|
dispatch({
|
||||||
|
type: types.GET_TERMS_AGREE_YN_SUCCESS,
|
||||||
|
payload: {
|
||||||
|
privacyTerms: 'N',
|
||||||
|
serviceTerms: 'N',
|
||||||
|
purchaseTerms: 'N',
|
||||||
|
paymentTerms: 'N',
|
||||||
|
optionalTerms: 'N',
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
TAxios(
|
TAxios(
|
||||||
|
|||||||
Reference in New Issue
Block a user