diff --git a/src/UI/Lobby/SDGame.tsx b/src/UI/Lobby/SDGame.tsx index 96f35bb..1d66f3b 100644 --- a/src/UI/Lobby/SDGame.tsx +++ b/src/UI/Lobby/SDGame.tsx @@ -43,6 +43,10 @@ const SDGame = (props: ISDGame) => { const port: number = 9005; GameManager.SlotData.SlotId = slotid; + GameManager.SlotData.IsRatioStop = isRatioStop; + GameManager.SlotData.RatioStop = ratioStop; + GameManager.SlotData.IsCountStop = isCountStop; + GameManager.SlotData.CountStop = countStop; conn = new NetConnector("https://" + host, port); conn.OnDataReceived.AddCallback(onNetDataReceived); conn.OnDisconnected.AddCallback(onNetDisconnected); diff --git a/src/UI/Login.tsx b/src/UI/Login.tsx index 87e8a7a..40b9dcb 100644 --- a/src/UI/Login.tsx +++ b/src/UI/Login.tsx @@ -23,7 +23,10 @@ const Login = () => { const serverType: typeof BusinessEnum.ServerType = BusinessEnum.ServerType; const [type, setType] = useState(BusinessEnum.ServerType.Internal_Dev); const [isLogin, setIsLogin] = useState(false); - const a = "eyJhbGciOiJIUzI1NiJ9.hoaQl5V6Ni6G3xXJXSADO-aS2fopaAd8lA-K6UkTUbhU46l1B5JU2TxINvsRQPmNE1TzKPc0MD5dyFOEJmo8gpGtRWsMWiyzekENR6QwJluQa2nL83QNZaif8BhEff1vm0F_TOAA2ENDiaY7VnkeLHB-Dv3KyRo5AEAmYVFWK_A.k1rj5BHgPKCVvI7sDjBwb6dGOl4OH3131NIr5vxVrGA"; + let a = "eyJhbGciOiJIUzI1NiJ9.hoaQl5V6Ni6G3xXJXSADO-aS2fopaAd8lA-K6UkTUbhU46l1B5JU2TxINvsRQPmNE1TzKPc0MD5dyFOEJmo8gpGtRWsMWiyzekENR6QwJluQa2nL83QNZaif8BhEff1vm0F_TOAA2ENDiaY7VnkeLHB-Dv3KyRo5AEAmYVFWK_A.k1rj5BHgPKCVvI7sDjBwb6dGOl4OH3131NIr5vxVrGA"; + if (import.meta.env.PROD) { + a = ""; + } const [token, SetToken] = useState(a); const options: Option[] = []; for (let i = 0, names: string[] = Object.keys(serverType); i < names.length; i++) {