[주문결제] [SHOPTIME-3921] 운영환경 testing모드_브라우저 계정 셋팅

수정 내용: 브라우저 운영환경 test 시에 계정 변경
This commit is contained in:
hyunwoo93.cha
2025-01-06 13:12:27 +09:00
parent ae1a3f3dc6
commit 387c0f6620
5 changed files with 119 additions and 50 deletions

View File

@@ -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=",