서버타입 st 경우 분기처리
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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"}
|
||||
|
||||
Reference in New Issue
Block a user