[mod] 微調

This commit is contained in:
建喵 2023-12-06 15:12:26 +08:00
parent 1726e98dfd
commit 82fd4da27a
2 changed files with 8 additions and 1 deletions

View File

@ -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);

View File

@ -23,7 +23,10 @@ const Login = () => {
const serverType: typeof BusinessEnum.ServerType = BusinessEnum.ServerType;
const [type, setType] = useState<number>(BusinessEnum.ServerType.Internal_Dev);
const [isLogin, setIsLogin] = useState<boolean>(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++) {