youmayalsolike api log 추가

This commit is contained in:
opacity@t-win.kr
2025-09-17 10:51:18 +09:00
parent 216e9a8b13
commit 8a06aa2113
4 changed files with 34 additions and 33 deletions

View File

@@ -245,9 +245,7 @@ export const getSubCategory =
);
};
export const continueGetSubCategory =
(key, pageNo) =>
(dispatch, getState) => {
export const continueGetSubCategory = (key, pageNo) => (dispatch, getState) => {
if (!lastSubCategoryParams) {
console.warn("No previous category parameters found");
return;
@@ -263,7 +261,7 @@ export const continueGetSubCategory =
if (
(startIndex <= 1 && !targetData) ||
startIndex < targetData.length ||
(totalCount -1) <= startIndex
totalCount - 1 <= startIndex
) {
//ignore query
return;
@@ -271,7 +269,7 @@ export const continueGetSubCategory =
dispatch(
getSubCategory({ ...lastSubCategoryParams }, pageNo, getSubCategoryKey)
);
};
};
const clearSubCategory = () => ({
type: types.CLEAR_SUB_CATEGORY,
@@ -308,7 +306,7 @@ export const getTop20Show = () => (dispatch, getState) => {
// 유메이라이크 아이템 리스트 IF-LGSP-201
export const getMainYouMayLike =
({ lgCatCd, exclCurationId, exclPatnrId, exclPrdtId }) =>
({ lgCatCd, exclCurationId, exclPatnrId, exclPrdtId, catDpTh3, catDpTh4 }) =>
(dispatch, getState) => {
const onSuccess = (response) => {
console.log("getMainYouMayLike onSuccess ", response.data);
@@ -328,7 +326,7 @@ export const getMainYouMayLike =
getState,
"get",
URLS.GET_YOUMAYLIKE,
{ lgCatCd, exclCurationId, exclPatnrId, exclPrdtId },
{ lgCatCd, catDpTh3, catDpTh4, exclCurationId, exclPatnrId, exclPrdtId },
{},
onSuccess,
onFail

View File

@@ -138,6 +138,8 @@ export default function DetailPanel({ panelInfo, isOnTop, spotlightId }) {
exclCurationId: panelInfo?.curationId,
exclPatnrId: panelInfo?.patnrId,
exclPrdtId: panelInfo?.prdtId,
catDpTh3: productData?.catDpTh3,
catDpTh4: productData?.catDpTh4,
})
);
}

View File

@@ -43,6 +43,7 @@ export default function TabContainer({
: $L("FEATURED SHOWS"),
];
// console.log("###liveChannelInfos", liveChannelInfos[selectedIndex]);
const handleItemClick = useCallback(
({ index }) => {
if (index === tab) return;
@@ -101,7 +102,6 @@ export default function TabContainer({
},
[videoVerticalVisible]
);
return (
<Container
className={classNames(
@@ -121,7 +121,7 @@ export default function TabContainer({
{tab === 0 && (
<ShopNowContents
tabTitle = {tabList}
tabTitle={tabList}
shopNowInfo={shopNowInfo}
playListInfo={playListInfo && playListInfo[selectedIndex]}
videoVerticalVisible={videoVerticalVisible}
@@ -132,7 +132,7 @@ export default function TabContainer({
)}
{panelInfo?.shptmBanrTpNm === "VOD" && tab === 1 && (
<FeaturedShowContents
tabTitle = {tabList}
tabTitle={tabList}
featuredShowsInfos={playListInfo}
currentVideoInfo={playListInfo[selectedIndex]}
setSelectedIndex={setSelectedIndex}
@@ -146,7 +146,7 @@ export default function TabContainer({
)}
{panelInfo?.shptmBanrTpNm === "LIVE" && tab === 1 && liveChannelInfos && (
<LiveChannelContents
tabTitle = {tabList}
tabTitle={tabList}
selectedIndex={selectedIndex}
setSelectedIndex={setSelectedIndex}
videoVerticalVisible={videoVerticalVisible}

View File

@@ -19,7 +19,6 @@ export default function YouMayLikeContents({
const youmaylikeInfos = useSelector((state) => state.main.youmaylikeInfos);
const gridStyle = useMemo(() => ({ height: `${height}px` }), [height]);
useEffect(() => {
if (shopNowInfo && shopNowInfo.length === 2) {
setHeight(scaleH(300));
@@ -52,6 +51,8 @@ export default function YouMayLikeContents({
showNm: playListInfo?.showNm,
showId: playListInfo?.showId,
liveFlag: playListInfo?.liveFlag,
catDpTh3: playListInfo?.catDpTh3,
catDpTh4: playListInfo?.catDpTh4,
patnrId,
prdtId,
launchedFromPlayer: true,