[SHOPTIME-3478] [TV-LOG-API] 310, 311번 TOP display 로그 : contNm 변경 요청

변경 파일:
1. RandomUnit.jsx
2. RollingUnit.jsx

변경 사항:
1. topContentsLogInfo, "contNm" 값 수정
2. topContentsLogInfo, "contNm" 값 수정
This commit is contained in:
younghoon100.park
2024-08-23 15:05:56 +09:00
parent 948d822244
commit 75ed6f9433
2 changed files with 24 additions and 0 deletions

View File

@@ -109,21 +109,33 @@ export default function RollingUnit({
let contId, contNm;
switch (currentRollingData?.shptmBanrTpCd) {
// case: "LIVE" or "VOD"
case "DSP00301":
case "DSP00302":
contId = currentRollingData?.showId;
contNm = currentRollingData?.showNm;
break;
// case: "Image Banner"
case "DSP00303":
contId = currentRollingData?.shptmLnkTpCd;
contNm = currentRollingData?.shptmLnkTpNm;
break;
// case: "Today's Deals"
default:
contId = currentRollingData?.prdtId;
contNm = currentRollingData?.prdtNm;
break;
}
if (
currentRollingData?.shptmLnkTpCd === "DSP00503" || // "Hot Picks"
currentRollingData?.shptmLnkTpCd === "DSP00509" // "Theme"
) {
contNm = contNm + " | " + currentRollingData?.lnkCurationId;
}
return {
banrNo: `${currentRollingData?.banrDpOrd}`,
banrTpNm: currentRollingData?.vtctpYn