[add] ComponyType
This commit is contained in:
parent
5314c8eb64
commit
e845daa7a8
src
@ -2,7 +2,7 @@ import CSMessage from "@/Common/Message/CSMessage";
|
||||
import { CoroutineV2 } from "@/Engine/CatanEngine/CoroutineV2/CoroutineV2";
|
||||
import { INetResponse } from "@/Engine/CatanEngine/NetManagerV2/Core/INetResponse";
|
||||
import CSSettingsSDV3 from "@/FormTableSD/CSSettingsSDV3";
|
||||
import BusinessTypeSetting from "@/_BusinessTypeSetting/BusinessTypeSetting";
|
||||
import BusinessTypeSetting, { BusinessEnum } from "@/_BusinessTypeSetting/BusinessTypeSetting";
|
||||
import Image from "@/components/Image/Image";
|
||||
import { useGameItems } from "@/context/GameItemsContext";
|
||||
import { GameLaunchRequest, GameLeaveRequest, RpcGameLaunchResponse } from "@/define/Request/GameRequest";
|
||||
@ -39,7 +39,7 @@ const SlotList = () => {
|
||||
...gameData,
|
||||
nowSlotId: slotId
|
||||
});
|
||||
if (componyID === 2) {
|
||||
if (componyID === BusinessEnum.ComponyType[BusinessEnum.ServerType[BusinessTypeSetting.UseServerType]]) {
|
||||
setGameUrl(url);
|
||||
}
|
||||
else {
|
||||
|
@ -23,7 +23,7 @@ const Login = () => {
|
||||
const serverType: typeof BusinessEnum.ServerType = BusinessEnum.ServerType;
|
||||
const [type, setType] = useState<number>(BusinessEnum.ServerType.Internal_Dev);
|
||||
const [isLogin, setIsLogin] = useState<boolean>(false);
|
||||
let a = "eyJhbGciOiJIUzI1NiJ9.hoaQl5V6Ni6G3xXJXSADO-aS2fopaAd8lA-K6UkTUbhU46l1B5JU2TxINvsRQPmNE1TzKPc0MD5dyFOEJmo8gpGtRWsMWiyzekENR6QwJluQa2nL83QNZaif8BhEff1vm0F_TOAA2ENDiaY7VnkeLHB-Dv3KyRo5AEAmYVFWK_A.k1rj5BHgPKCVvI7sDjBwb6dGOl4OH3131NIr5vxVrGA";
|
||||
let a = "eyJhbGciOiJIUzI1NiJ9.RAeGOxLhgT9A9ZyUxcA1h4i0QNnCbkC--d_lgk-v1mbjyFPeLe9tOEHW8VQ9sXo6QjVXDTERnpTOi7wjT97zgjMZfhlASvHgGQxkbABftueMSfsFuufA3cDcxbb423wi_K5ANlTeUapmf2pubIIE60sBMtmD5u-gxX_wi2bOWg8.t64A22X3f19i8WVVqW8G2Ot90cndoBX_gCT8whnJrYc";
|
||||
if (import.meta.env.PROD) {
|
||||
a = "";
|
||||
}
|
||||
|
@ -17,6 +17,19 @@ export module BusinessEnum {
|
||||
Test = 8
|
||||
}
|
||||
|
||||
export class ComponyType {
|
||||
/** 外版 */
|
||||
public static Out: number = 1;
|
||||
/** 內版開發(內網&4G) */
|
||||
public static Internal_Dev: number = 2;
|
||||
/** 外部商業DEMO(B2B) */
|
||||
public static Out_B2B: number = 2;
|
||||
/** QA */
|
||||
public static QA: number = 1;
|
||||
/** Test */
|
||||
public static Test: number = 1;
|
||||
}
|
||||
|
||||
export enum LogoType {
|
||||
/** 完美(目前只有WEB) */
|
||||
// WM = 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user