서버타입 st 경우 분기처리

This commit is contained in:
opacity@t-win.kr
2025-08-21 13:39:31 +09:00
parent d63230f29e
commit afb3be7df5
2 changed files with 11 additions and 2 deletions

View File

@@ -284,7 +284,7 @@ export const getUrl = (getState, endStr) => {
if (sdpURL.indexOf("qt2") >= 0) {
// dev
newUrl = "https://qt2-" + ricCode + SHOPTIME_BASE_URL;
} else if (sdpURL.indexOf("qt") >= 0) {
} else if (sdpURL.indexOf("qt") >= 0 || sdpURL.indexOf("st") >= 0) {
// Qa - cdn
newUrl = "https://qt-" + ricCode + SHOPTIME_BASE_URL;
} else {

View File

@@ -104,7 +104,7 @@ export default function DebugPanel({ spotlightId }) {
},
[dispatch]
);
console.log("###localSettings.serverType", localSettings.serverType);
return (
<TPanel isTabActivated={false} spotlightId={spotlightId}>
<THeader title="Debug" />
@@ -149,6 +149,15 @@ export default function DebugPanel({ spotlightId }) {
>
qt
</RadioItem>
<RadioItem
className={css.switch}
selected={localSettings.serverType === "st"}
onClick={onChangeServer("st")}
disabled={localSettings.preventServerChange}
>
st
</RadioItem>
<RadioItem
className={css.switch}
selected={localSettings.serverType === "prd"}