[250930] feat: YouMayLikeData관련 수정 및 배경이미지 개선

This commit is contained in:
2025-09-30 10:37:59 +09:00
parent 29859514a8
commit 1f387f9327
9 changed files with 231 additions and 126 deletions

View File

@@ -308,24 +308,43 @@ export const getTop20Show = () => (dispatch, getState) => {
// 유메이라이크 아이템 리스트 IF-LGSP-201
export const getMainYouMayLike =
({ lgCatCd, exclCurationId, exclPatnrId, exclPrdtId }) =>
({ lgCatCd, exclCurationId, exclPatnrId, exclPrdtId, catDpTh3, catDpTh4 }) =>
(dispatch, getState) => {
// console.log('[YouMayLike] API 요청 시작:', {
// lgCatCd,
// exclCurationId,
// exclPatnrId,
// exclPrdtId,
// catDpTh3,
// catDpTh4
// });
const onSuccess = (response) => {
console.log("getMainYouMayLike onSuccess ", response.data);
console.log('[YouMayLike] API 응답 구조:', {
fullResponse: response.data,
dataField: response.data.data,
hasYoumaylike: !!(response.data.data && response.data.data.youmaylike),
youmaylikeLength: response.data.data?.youmaylike?.length || 0
});
// console.log('[YouMayLike] API 응답 성공 (onSuccess):', {
// fullResponse: response.data,
// dataField: response.data.data,
// hasYoumaylike: !!(response.data.data && response.data.data.youmaylike),
// youmaylikeLength: response.data.data?.youmaylike?.length || 0,
// youmaylikeData: response.data.data?.youmaylike
// });
// console.log('[YouMayLike] Redux dispatch 전 - payload:', response.data.data);
dispatch({
type: types.GET_YOUMAYLIKE,
payload: response.data.data,
});
// console.log('[YouMayLike] Redux dispatch 완료');
};
const onFail = (error) => {
// console.error('[YouMayLike] API 요청 실패 (onFail):', {
// error: error,
// errorMessage: error?.message,
// errorResponse: error?.response,
// errorData: error?.response?.data
// });
console.error("getMainYouMayLike onFail", error);
};
@@ -334,7 +353,7 @@ export const getMainYouMayLike =
getState,
"get",
URLS.GET_YOUMAYLIKE,
{ lgCatCd, exclCurationId, exclPatnrId, exclPrdtId },
{ lgCatCd, exclCurationId, exclPatnrId, exclPrdtId, catDpTh3, catDpTh4 },
{},
onSuccess,
onFail