[actions, api] postLogLive, TLogEvent 수정

Detail Notes :

1. postLogLive, params 수정
2. TLogEvent, 딥 링크 관련 Logic 주석 처리
This commit is contained in:
younghoon100.park
2024-04-30 18:12:43 +09:00
parent 0bdfd29a40
commit 685bca405d
2 changed files with 24 additions and 23 deletions

View File

@@ -1,7 +1,7 @@
import axios from "axios";
import { getUrl, URLS } from "./apiConfig";
import { clearLaunchParams, getLaunchParams } from "../utils/helperMethods";
import { getUrl } from "./apiConfig";
// import { clearLaunchParams, getLaunchParams } from "../utils/helperMethods";
import { createQueryString } from "../utils/helperMethods";
export const TLogEvent = (
@@ -31,34 +31,31 @@ export const TLogEvent = (
return;
}
// pyh 수정
if (type === "get") {
const _urlparams = createQueryString(urlParams);
url += _urlparams ? `?${_urlparams}` : "";
}
let linkTpCd = "";
// let linkTpCd = "";
// pyh 수정
if (httpHeader) {
const launchParams = getLaunchParams();
// if (httpHeader) {
// const launchParams = getLaunchParams();
if (launchParams?.contentTarget) {
const tokens = launchParams.contentTarget.split("_");
// if (launchParams?.contentTarget) {
// const tokens = launchParams.contentTarget.split("_");
if (tokens[0] === "V3") {
linkTpCd = tokens[1];
}
}
}
// if (tokens[0] === "V3") {
// linkTpCd = tokens[1];
// }
// }
// }
const model = {
...params,
adId: "",
cntryCd,
dvcId,
dvcTp,
linkTpCd,
// linkTpCd,
platCd,
prodCd,
};