From 75ed6f9433ea52ea260fa5488ab3e5357c60ea17 Mon Sep 17 00:00:00 2001 From: "younghoon100.park" Date: Fri, 23 Aug 2024 15:05:56 +0900 Subject: [PATCH] =?UTF-8?q?[SHOPTIME-3478]=20[TV-LOG-API]=20310,=20311?= =?UTF-8?q?=EB=B2=88=20TOP=20display=20=EB=A1=9C=EA=B7=B8=20:=20contNm=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD=20=EC=9A=94=EC=B2=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 변경 파일: 1. RandomUnit.jsx 2. RollingUnit.jsx 변경 사항: 1. topContentsLogInfo, "contNm" 값 수정 2. topContentsLogInfo, "contNm" 값 수정 --- .../src/views/HomePanel/HomeBanner/RandomUnit.jsx | 12 ++++++++++++ .../src/views/HomePanel/HomeBanner/RollingUnit.jsx | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/com.twin.app.shoptime/src/views/HomePanel/HomeBanner/RandomUnit.jsx b/com.twin.app.shoptime/src/views/HomePanel/HomeBanner/RandomUnit.jsx index 84eb5bcc..40f50308 100644 --- a/com.twin.app.shoptime/src/views/HomePanel/HomeBanner/RandomUnit.jsx +++ b/com.twin.app.shoptime/src/views/HomePanel/HomeBanner/RandomUnit.jsx @@ -80,21 +80,33 @@ export default function RandomUnit({ let contId, contNm; switch (currentRandomData?.shptmBanrTpCd) { + // case: "LIVE" or "VOD" case "DSP00301": case "DSP00302": contId = currentRandomData?.showId; contNm = currentRandomData?.showNm; break; + + // case: "Image Banner" case "DSP00303": contId = currentRandomData?.shptmLnkTpCd; contNm = currentRandomData?.shptmLnkTpNm; break; + + // case: "Today's Deals" default: contId = currentRandomData?.prdtId; contNm = currentRandomData?.prdtNm; break; } + if ( + currentRandomData?.shptmLnkTpCd === "DSP00503" || // "Hot Picks" + currentRandomData?.shptmLnkTpCd === "DSP00509" // "Theme" + ) { + contNm = contNm + " | " + currentRandomData?.lnkCurationId; + } + return { banrNo: `${currentRandomData?.banrDpOrd}`, banrTpNm: currentRandomData?.vtctpYn diff --git a/com.twin.app.shoptime/src/views/HomePanel/HomeBanner/RollingUnit.jsx b/com.twin.app.shoptime/src/views/HomePanel/HomeBanner/RollingUnit.jsx index 75111a7c..b1d88708 100644 --- a/com.twin.app.shoptime/src/views/HomePanel/HomeBanner/RollingUnit.jsx +++ b/com.twin.app.shoptime/src/views/HomePanel/HomeBanner/RollingUnit.jsx @@ -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