yomaylike 요청 수정
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
|
||||
import { URLS } from "../api/apiConfig";
|
||||
import { TAxios } from "../api/TAxios";
|
||||
import { convertUtcToLocal } from "../components/MediaPlayer/util";
|
||||
@@ -9,8 +10,12 @@ import {
|
||||
changeAppStatus,
|
||||
deleteReservation,
|
||||
} from "./commonActions";
|
||||
import { sendLogTotalRecommend } from "./logActions";
|
||||
|
||||
|
||||
|
||||
export const getMainLiveShow = (props) => (dispatch, getState) => {
|
||||
|
||||
const onSuccess = (response) => {
|
||||
console.log("@@ getMainLiveShow onSuccess", response.data);
|
||||
|
||||
@@ -114,7 +119,7 @@ export const getMainCategoryDetail = (props) => (dispatch, getState) => {
|
||||
|
||||
const onSuccess = (response) => {
|
||||
console.log("getMainCategoryDetail onSuccess ", response.data);
|
||||
|
||||
|
||||
dispatch({
|
||||
type: types.GET_PRODUCT_DETAIL,
|
||||
payload: response.data.data,
|
||||
@@ -144,8 +149,20 @@ export const getMainCategoryDetail = (props) => (dispatch, getState) => {
|
||||
export const getMainCategoryShowDetail = (props) => (dispatch, getState) => {
|
||||
const { patnrId, showId, curationId } = props;
|
||||
const onSuccess = (response) => {
|
||||
console.log("getMainCategoryShowDetail onSuccess ", response.data);
|
||||
|
||||
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,
|
||||
@@ -386,8 +403,8 @@ export const getHomeFullVideoInfo =
|
||||
({ lgCatCd }) =>
|
||||
(dispatch, getState) => {
|
||||
const onSuccess = (response) => {
|
||||
console.log("getHomeFullVideoInfo onSuccess", response.data);
|
||||
|
||||
console.log("getHomeFullVideoInfo onSuccess", response.data.data.showInfos);
|
||||
console.log("#홈풀비디오 영상시청");
|
||||
dispatch({
|
||||
type: types.GET_HOME_FULL_VIDEO_INFO,
|
||||
payload: { data: response.data.data, lgCatCd },
|
||||
@@ -416,7 +433,7 @@ 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,
|
||||
@@ -438,6 +455,11 @@ export const getMainLiveShowNowProduct =
|
||||
onFail
|
||||
);
|
||||
};
|
||||
export const clearShopNowInfo = () => ({
|
||||
type: types.CLEAR_SHOPNOW_INFO,
|
||||
});
|
||||
|
||||
export const clearShopNowInfo = () => {
|
||||
console.log("#영상시청 종료");
|
||||
|
||||
return {
|
||||
type: types.CLEAR_SHOPNOW_INFO,
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user