[SHOPTIME-3563] Q-Event/System Alarm 연동
변경 파일: 1. mainActions.js 2. helperMethods.js 3. LiveVideoCard.jsx 4. NoLiveCard.jsx 5. UpComingCard.jsx 6. OrderListCardTopContents.jsx 7. ReminderCard.jsx 변경 내용: 1. setMainLiveUpcomingAlarm 함수, onSuccess 함수 안에 lunasend params 변경 2. parseDateTime 함수 삭제 3, 4, 5, 6, 7. server time → system time 반영
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
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 * as HelperMethods from "../utils/helperMethods";
|
||||
import { types } from "./actionTypes";
|
||||
@@ -48,20 +49,20 @@ export const setMainLiveUpcomingAlarm = (props) => (dispatch, getState) => {
|
||||
strtDt,
|
||||
} = props;
|
||||
|
||||
const parseStrtDt = HelperMethods.parseDateTime(strtDt);
|
||||
|
||||
const onSuccess = (response) => {
|
||||
console.log("setMainLiveUpcomingAlarm onSuccess", response.data);
|
||||
|
||||
if (alamDispFlag === "Y") {
|
||||
const convertedStrtDt = convertUtcToLocal(strtDt);
|
||||
|
||||
const data = {
|
||||
startTime: {
|
||||
year: parseStrtDt.year,
|
||||
month: parseStrtDt.month,
|
||||
day: parseStrtDt.day,
|
||||
hour: parseStrtDt.hour,
|
||||
minute: parseStrtDt.minute,
|
||||
second: parseStrtDt.second,
|
||||
year: convertedStrtDt.getFullYear(),
|
||||
month: convertedStrtDt.getMonth() + 1,
|
||||
day: convertedStrtDt.getDate(),
|
||||
hour: convertedStrtDt.getHours(),
|
||||
minute: convertedStrtDt.getMinutes(),
|
||||
second: convertedStrtDt.getSeconds(),
|
||||
},
|
||||
params: {
|
||||
message: `[${patncNm}] ${showNm}\n${HelperMethods.$L("Watch Now!")}`,
|
||||
|
||||
Reference in New Issue
Block a user