[주문결제] [SHOPTIME-3921] 운영환경 testing모드_브라우저 계정 셋팅
수정 내용: 브라우저 운영환경 test 시에 계정 변경
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import appinfo from "../../webos-meta/appinfo.json";
|
||||
import { store } from "../store/store";
|
||||
import * as Config from "../utils/Config";
|
||||
import LS2Request from "./LS2Request";
|
||||
|
||||
@@ -70,48 +71,93 @@ export const getLoginUserData = (
|
||||
onComplete,
|
||||
});
|
||||
} else {
|
||||
const serverType = store.getState().localSettings.serverType;
|
||||
|
||||
const userData =
|
||||
serverType === "prd"
|
||||
? {
|
||||
id: "prdtest@yopmail.com",
|
||||
inactiveID: "",
|
||||
lastSignInUserNo: "US2412306099093",
|
||||
userData: {
|
||||
sdpUserNumber: "80995804",
|
||||
needToSetNickname: false,
|
||||
adultAuthStatus: "needAge",
|
||||
serverId: "prdtest@yopmail.com",
|
||||
countryCode: "US",
|
||||
userNumber: "US2412306099093",
|
||||
defaultNick: false,
|
||||
isRequiredTerm: false,
|
||||
id: "prdtest@yopmail.com",
|
||||
userID: "prdtest@yopmail.com",
|
||||
serviceList: [
|
||||
{
|
||||
svcName: "LG Smart World(TV)",
|
||||
svcCode: "SVC301",
|
||||
joinDate: "02-13-2024",
|
||||
isService: "Y",
|
||||
},
|
||||
{
|
||||
svcName: "MC OAuth",
|
||||
svcCode: "SVC710",
|
||||
joinDate: "02-13-2024",
|
||||
isService: "Y",
|
||||
},
|
||||
],
|
||||
profileNick: "LGEUSER0",
|
||||
iconNick: "L",
|
||||
needToCheckTerms: false,
|
||||
accountType: "LGE",
|
||||
profileBg: "#7360E7",
|
||||
},
|
||||
}
|
||||
: {
|
||||
id: "twin@t-win.kr",
|
||||
inactiveID: "",
|
||||
lastSignInUserNo: "US2210240095608",
|
||||
userData: {
|
||||
sdpUserNumber: "80995804",
|
||||
needToSetNickname: false,
|
||||
adultAuthStatus: "needAge",
|
||||
serverId: "twin@t-win.kr",
|
||||
countryCode: "US",
|
||||
userNumber: "US2210240095608",
|
||||
defaultNick: false,
|
||||
isRequiredTerm: false,
|
||||
id: "twin@t-win.kr",
|
||||
userID: "twin@t-win.kr",
|
||||
serviceList: [
|
||||
{
|
||||
svcName: "LG Smart World(TV)",
|
||||
svcCode: "SVC301",
|
||||
joinDate: "02-13-2024",
|
||||
isService: "Y",
|
||||
},
|
||||
{
|
||||
svcName: "MC OAuth",
|
||||
svcCode: "SVC710",
|
||||
joinDate: "02-13-2024",
|
||||
isService: "Y",
|
||||
},
|
||||
],
|
||||
profileNick: "LGEUSER0",
|
||||
iconNick: "L",
|
||||
needToCheckTerms: false,
|
||||
accountType: "LGE",
|
||||
profileBg: "#7360E7",
|
||||
},
|
||||
};
|
||||
|
||||
onSuccess({
|
||||
subscribed: false,
|
||||
returnValue: true,
|
||||
multipleLoginUserData: [],
|
||||
id: "twin@t-win.kr",
|
||||
inactiveID: "",
|
||||
lastSignInUserNo: "US2210240095608",
|
||||
userData: {
|
||||
sdpUserNumber: "80995804",
|
||||
needToSetNickname: false,
|
||||
adultAuthStatus: "needAge",
|
||||
serverId: "twin@t-win.kr",
|
||||
countryCode: "US",
|
||||
userNumber: "US2210240095608",
|
||||
defaultNick: false,
|
||||
isRequiredTerm: false,
|
||||
id: "twin@t-win.kr",
|
||||
userID: "twin@t-win.kr",
|
||||
serviceList: [
|
||||
{
|
||||
svcName: "LG Smart World(TV)",
|
||||
svcCode: "SVC301",
|
||||
joinDate: "02-13-2024",
|
||||
isService: "Y",
|
||||
},
|
||||
{
|
||||
svcName: "MC OAuth",
|
||||
svcCode: "SVC710",
|
||||
joinDate: "02-13-2024",
|
||||
isService: "Y",
|
||||
},
|
||||
],
|
||||
profileNick: "LGEUSER0",
|
||||
iconNick: "L",
|
||||
needToCheckTerms: false,
|
||||
accountType: "LGE",
|
||||
profileBg: "#7360E7",
|
||||
},
|
||||
...userData,
|
||||
});
|
||||
|
||||
onComplete && onComplete();
|
||||
}
|
||||
};
|
||||
|
||||
export const launchMembershipAppOver9 = (
|
||||
webOSVersion,
|
||||
{ onSuccess, onFailure, onComplete }
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import appinfo from "../../webos-meta/appinfo.json";
|
||||
import { alertToast } from "../actions/commonActions";
|
||||
import { store } from "../store/store";
|
||||
import LS2Request from "./LS2Request";
|
||||
|
||||
export const getConnectionStatus = ({ onSuccess, onFailure, onComplete }) => {
|
||||
@@ -66,9 +67,14 @@ export const getHttpHeaderForServiceRequest = ({
|
||||
});
|
||||
return httpHeaderHandler;
|
||||
} else {
|
||||
const serverType = store.getState().localSettings.serverType;
|
||||
|
||||
const userNumber =
|
||||
serverType === "prd" ? "US2412306099093" : "US2210240095608";
|
||||
|
||||
onSuccess({
|
||||
HOST: "qt2-US.nextlgsdp.com",
|
||||
"X-User-Number": "US2210240095608",
|
||||
"X-User-Number": userNumber,
|
||||
Authorization:
|
||||
"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJuZXh0bGdzZHAuY29tIiwiYXVkIjoibmV4dGxnc2RwLmNvbSIsImlhdCI6MTcwNzc4NTUyNSwiZXhwIjoxNzA3NzkyNzI1LCJtYWNBZGRyZXNzIjoiZWVkMDQ2NjdiNjUzOWU3YmQxMDA1OTljYjBkYTI5ZjRjZTgyZGZlOGZkNzIzMDAxZGVmMjg4NWRkNWZiODRmNWNiMzZlM2QwNzYzNWZjZGJjYWNjNGVjMzI5NWIwNjZjOTMwNmNmNDI1ZGQzMmQ2MDMxMjc1NWNkOTIyNjEwMzcifQ.vqPdYGnN46diesDBLzA4UhACCJVdIycLs7wZu9M55Hc",
|
||||
"X-Authentication": "MkOLvUocrJ69RH/iV1ZABJhjR2g=",
|
||||
|
||||
@@ -225,19 +225,31 @@ export default function MyInfo({ title, cbScrollTo }) {
|
||||
dispatch(launchMembershipApp());
|
||||
|
||||
if (typeof window === "object" && !window.PalmSystem) {
|
||||
dispatch(
|
||||
changeAppStatus({
|
||||
loginUserData: {
|
||||
profileNick: "twin",
|
||||
userId: "twin@t-win.kr",
|
||||
userNumber: "US2210240095608",
|
||||
},
|
||||
})
|
||||
);
|
||||
if (serverType === "prd") {
|
||||
dispatch(
|
||||
changeAppStatus({
|
||||
loginUserData: {
|
||||
profileNick: "prdtest",
|
||||
userId: "prdtest@yopmail.com",
|
||||
userNumber: "US2412306099093",
|
||||
},
|
||||
})
|
||||
);
|
||||
} else {
|
||||
dispatch(
|
||||
changeAppStatus({
|
||||
loginUserData: {
|
||||
profileNick: "twin",
|
||||
userId: "twin@t-win.kr",
|
||||
userNumber: "US2210240095608",
|
||||
},
|
||||
})
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
setLoginSuccess(true);
|
||||
}, [dispatch]);
|
||||
}, [dispatch, serverType]);
|
||||
|
||||
const handleClickEditButton = useCallback(() => {
|
||||
let btnNm = "";
|
||||
|
||||
@@ -185,6 +185,10 @@ export default function OrderListCardStatus({
|
||||
}
|
||||
}, [dispatch, doSendLogOrderBtnClick]);
|
||||
|
||||
const onClickTrackPackage = useCallback(() => {
|
||||
console.log("chw");
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className={css.itemListStatusContainer}>
|
||||
@@ -254,6 +258,7 @@ export default function OrderListCardStatus({
|
||||
_onClickBuyAgain,
|
||||
onClickCancelItem,
|
||||
onClickReturnExchange,
|
||||
onClickTrackPackage,
|
||||
})
|
||||
)}
|
||||
</div>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import React from 'react';
|
||||
import React from "react";
|
||||
|
||||
import TButton from '../../../../../components/TButton/TButton';
|
||||
import { $L } from '../../../../../utils/helperMethods';
|
||||
import css from '../components/OrderListCardStatus.module.less';
|
||||
import TButton from "../../../../../components/TButton/TButton";
|
||||
import { $L } from "../../../../../utils/helperMethods";
|
||||
import css from "../components/OrderListCardStatus.module.less";
|
||||
|
||||
export const getStatusMessageAndClass = (shptmOrdStCd, shptmOrdStNm) => {
|
||||
switch (shptmOrdStCd) {
|
||||
|
||||
Reference in New Issue
Block a user