shoptime live, vod, media 시청및종료시 정보수집

This commit is contained in:
Dev TWIN0906
2025-05-12 17:36:52 +09:00
parent 84bc71f5b0
commit c78896903b
4 changed files with 67 additions and 21 deletions

View File

@@ -2,7 +2,7 @@
import { URLS } from "../api/apiConfig";
import { TAxios } from "../api/TAxios";
import { convertUtcToLocal } from "../components/MediaPlayer/util";
import { CATEGORY_DATA_MAX_RESULTS_LIMIT } from "../utils/Config";
import { CATEGORY_DATA_MAX_RESULTS_LIMIT, LOG_CONTEXT_NAME, LOG_MESSAGE_ID } from "../utils/Config";
import * as HelperMethods from "../utils/helperMethods";
import { types } from "./actionTypes";
import {
@@ -10,8 +10,6 @@ import {
changeAppStatus,
deleteReservation,
} from "./commonActions";
import { sendLogTotalRecommend } from "./logActions";
export const getMainLiveShow = (props) => (dispatch, getState) => {
@@ -145,28 +143,18 @@ export const getMainCategoryDetail = (props) => (dispatch, getState) => {
);
};
// 영상 상세 보기 조회 LF-LGSP-047
export const getMainCategoryShowDetail = (props) => (dispatch, getState) => {
const { patnrId, showId, curationId } = props;
const onSuccess = (response) => {
console.log("getMainCategoryShowDetail onSuccess ", response.data);
console.log("#메인카테고리쇼 영상시청", props);
const showInfos = response.data.data.showInfos;
dispatch(sendLogTotalRecommend({
visible: 'true',
showType: "",
player: "",
contentId:showId,
contentTitle:showInfos[0].showNm,
partner:showInfos[0].patncNm,
brand:showInfos[0].productInfos[0]?.brandNm,
category:showInfos[0].showCatNm,
}))
dispatch({
type: types.GET_MAIN_CATEGORY_SHOW_DETAIL,
payload: response.data.data,
});
};
const onFail = (error) => {
@@ -404,11 +392,12 @@ export const getHomeFullVideoInfo =
(dispatch, getState) => {
const onSuccess = (response) => {
console.log("getHomeFullVideoInfo onSuccess", response.data.data.showInfos);
console.log("#홈풀비디오 영상시청");
dispatch({
type: types.GET_HOME_FULL_VIDEO_INFO,
payload: { data: response.data.data, lgCatCd },
});
};
const onFail = (error) => {
@@ -433,11 +422,12 @@ export const getMainLiveShowNowProduct =
(dispatch, getState) => {
const onSuccess = (response) => {
console.log("getMainLiveShowNowProduct onSuccess", response.data);
console.log("#메인라이브쇼 영상시청");
dispatch({
type: types.GET_MAIN_LIVE_SHOW_NOW_PRODUCT,
payload: response.data.data,
});
};
const onFail = (error) => {
@@ -457,8 +447,6 @@ export const getMainLiveShowNowProduct =
};
export const clearShopNowInfo = () => {
console.log("#영상시청 종료");
return {
type: types.CLEAR_SHOPNOW_INFO,
};