[251203] fix: VOD-FeaturedShows-로그정리

🕐 커밋 시간: 2025. 12. 03. 12:33:05

📊 변경 통계:
  • 총 파일: 2개
  • 추가: +34줄
  • 삭제: -34줄

📝 수정된 파일:
  ~ com.twin.app.shoptime/src/views/PlayerPanel/PlayerPanel.jsx
  ~ com.twin.app.shoptime/src/views/PlayerPanel/PlayerTabContents/TabContents/FeaturedShowContents.jsx

🔧 주요 변경 내용:
  • 소규모 기능 개선
  • 코드 정리 및 최적화
This commit is contained in:
2025-12-03 12:33:06 +09:00
parent feb10dfe24
commit 5e823b8e03
2 changed files with 34 additions and 34 deletions

View File

@@ -1410,21 +1410,21 @@ const PlayerPanel = ({ isTabActivated, panelInfo, isOnTop, spotlightId, ...props
]); ]);
useEffect(() => { useEffect(() => {
console.log('[PlayerPanel] VOD useEffect 진입', { // console.log('[PlayerPanel] VOD useEffect 진입', {
shptmBanrTpNm: panelInfo.shptmBanrTpNm, // shptmBanrTpNm: panelInfo.shptmBanrTpNm,
panelInfoShowId: panelInfo.showId, // panelInfoShowId: panelInfo.showId,
showDetailInfoLength: showDetailInfo?.length, // showDetailInfoLength: showDetailInfo?.length,
showDetailInfoId: showDetailInfo?.[0]?.showId, // showDetailInfoId: showDetailInfo?.[0]?.showId,
}); // });
if (panelInfo.shptmBanrTpNm === 'VOD' && showDetailInfo && showDetailInfo.length > 0) { if (panelInfo.shptmBanrTpNm === 'VOD' && showDetailInfo && showDetailInfo.length > 0) {
console.log('[PlayerPanel] VOD 조건 만족'); // console.log('[PlayerPanel] VOD 조건 만족');
// 현재 panelInfo의 showId와 showDetailInfo의 showId가 일치할 때만 처리 // 현재 panelInfo의 showId와 showDetailInfo의 showId가 일치할 때만 처리
if (showDetailInfo[0]?.showId === panelInfo.showId) { if (showDetailInfo[0]?.showId === panelInfo.showId) {
console.log('[PlayerPanel] showId 일치! 동영상 설정 시작', { // console.log('[PlayerPanel] showId 일치! 동영상 설정 시작', {
showId: showDetailInfo[0]?.showId, // showId: showDetailInfo[0]?.showId,
patnrId: showDetailInfo[0]?.patnrId, // patnrId: showDetailInfo[0]?.patnrId,
}); // });
if (showDetailInfo[0]?.showCatCd && fullVideolgCatCd !== showDetailInfo[0]?.showCatCd) { if (showDetailInfo[0]?.showCatCd && fullVideolgCatCd !== showDetailInfo[0]?.showCatCd) {
dispatch( dispatch(
@@ -1434,17 +1434,17 @@ const PlayerPanel = ({ isTabActivated, panelInfo, isOnTop, spotlightId, ...props
); );
} }
if (showDetailInfo[0].showId && showDetailInfo[0].patnrId) { if (showDetailInfo[0].showId && showDetailInfo[0].patnrId) {
console.log('[PlayerPanel] setPlayListInfo 호출'); // console.log('[PlayerPanel] setPlayListInfo 호출');
// featuredShowsInfos가 있으면 addPanelInfoToPlayList로 여러 동영상 처리 // featuredShowsInfos가 있으면 addPanelInfoToPlayList로 여러 동영상 처리
if (featuredShowsInfos && featuredShowsInfos.length > 0) { if (featuredShowsInfos && featuredShowsInfos.length > 0) {
console.log('[PlayerPanel] addPanelInfoToPlayList 호출 (여러 배너)', { // console.log('[PlayerPanel] addPanelInfoToPlayList 호출 (여러 배너)', {
featuredShowsInfosLength: featuredShowsInfos.length, // featuredShowsInfosLength: featuredShowsInfos.length,
}); // });
addPanelInfoToPlayList(featuredShowsInfos); addPanelInfoToPlayList(featuredShowsInfos);
} else { } else {
// featuredShowsInfos가 없으면 현재 showDetailInfo만 설정 // featuredShowsInfos가 없으면 현재 showDetailInfo만 설정
console.log('[PlayerPanel] setPlayListInfo 호출 (단일 배너만)'); // console.log('[PlayerPanel] setPlayListInfo 호출 (단일 배너만)');
setPlayListInfo(showDetailInfo); setPlayListInfo(showDetailInfo);
setSelectedIndex(0); setSelectedIndex(0);
} }
@@ -1454,10 +1454,10 @@ const PlayerPanel = ({ isTabActivated, panelInfo, isOnTop, spotlightId, ...props
} }
} else { } else {
// showId가 일치하지 않으면 이전 상태를 재활용하지 않고 초기화 // showId가 일치하지 않으면 이전 상태를 재활용하지 않고 초기화
console.log('[PlayerPanel] VOD showDetailInfo mismatch. Clearing playListInfo.', { // console.log('[PlayerPanel] VOD showDetailInfo mismatch. Clearing playListInfo.', {
panelInfoShowId: panelInfo.showId, // panelInfoShowId: panelInfo.showId,
showDetailInfoId: showDetailInfo[0]?.showId, // showDetailInfoId: showDetailInfo[0]?.showId,
}); // });
dlog('[PlayerPanel] VOD showDetailInfo mismatch. Clearing playListInfo.', { dlog('[PlayerPanel] VOD showDetailInfo mismatch. Clearing playListInfo.', {
panelInfoShowId: panelInfo.showId, panelInfoShowId: panelInfo.showId,
showDetailInfoId: showDetailInfo[0]?.showId, showDetailInfoId: showDetailInfo[0]?.showId,

View File

@@ -78,13 +78,13 @@ export default function FeaturedShowContents({
} = featuredShowsInfos[index]; } = featuredShowsInfos[index];
const handleItemClick = () => { const handleItemClick = () => {
console.log('[FeaturedShowContents] 클릭 발생', { // console.log('[FeaturedShowContents] 클릭 발생', {
index, // index,
showId, // showId,
showNm, // showNm,
patnrId, // patnrId,
currentVideoShowId, // currentVideoShowId,
}); // });
const params = { const params = {
tabTitle: tabTitle[tabIndex], tabTitle: tabTitle[tabIndex],
@@ -99,7 +99,7 @@ export default function FeaturedShowContents({
dispatch(sendLogTotalRecommend(params)); dispatch(sendLogTotalRecommend(params));
//중복클릭방지 //중복클릭방지
if (isClickBlocked.current) { if (isClickBlocked.current) {
console.log('[FeaturedShowContents] 중복 클릭 방지됨'); // console.log('[FeaturedShowContents] 중복 클릭 방지됨');
return; return;
} }
@@ -116,15 +116,15 @@ export default function FeaturedShowContents({
}, 600); }, 600);
if (currentVideoShowId && currentVideoShowId === showId) { if (currentVideoShowId && currentVideoShowId === showId) {
console.log('[FeaturedShowContents] 동일한 showId로 클릭됨, 무시'); // console.log('[FeaturedShowContents] 동일한 showId로 클릭됨, 무시');
return; return;
} }
console.log('[FeaturedShowContents] getMainCategoryShowDetail + updatePanel 호출', { // console.log('[FeaturedShowContents] getMainCategoryShowDetail + updatePanel 호출', {
showId, // showId,
patnrId, // patnrId,
lgCatCd, // lgCatCd,
}); // });
setSelectedIndex(index); setSelectedIndex(index);