|
|
@@ -11,11 +11,43 @@ public class CommonConfig
|
|
|
public static readonly int arrowSpeedPrecision = 1;
|
|
|
//实体模具箭重,单位克
|
|
|
public static float arrowWeight = 75;
|
|
|
+
|
|
|
+ public enum ServerType {LocalTest, Produce};
|
|
|
+ private static ServerType serverType = ServerType.Produce;
|
|
|
//业务服务端访问地址
|
|
|
- public static string businessServerURI = "http://192.168.101.14:11332/SmartBowBusinessServer";
|
|
|
+ public static string businessServerURI {
|
|
|
+ get {
|
|
|
+ if (serverType == ServerType.LocalTest) {
|
|
|
+ return "http://192.168.101.14:11332/SmartBowBusinessServer";
|
|
|
+ }
|
|
|
+ if (serverType == ServerType.Produce) {
|
|
|
+ return "http://49.234.219.63:11332/SmartBowBusinessServer";
|
|
|
+ }
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+ }
|
|
|
//业务服务端WS访问地址
|
|
|
- public static string businessServerWsURI = "ws://192.168.101.14:11333/SmartBowBusinessServerSK";
|
|
|
+ public static string businessServerWsURI {
|
|
|
+ get {
|
|
|
+ if (serverType == ServerType.LocalTest) {
|
|
|
+ return "ws://192.168.101.14:11333/SmartBowBusinessServerSK";
|
|
|
+ }
|
|
|
+ if (serverType == ServerType.Produce) {
|
|
|
+ return "ws://49.234.219.63:11333/SmartBowBusinessServerSK";
|
|
|
+ }
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+ }
|
|
|
//游戏对战服务器
|
|
|
- // public static string gamePKServerWsURI = "ws://81.69.16.183:11811/SmartBowGameServer";
|
|
|
- public static string gamePKServerWsURI = "ws://192.168.101.14:11811/SmartBowGameServer";
|
|
|
+ public static string gamePKServerWsURI {
|
|
|
+ get {
|
|
|
+ if (serverType == ServerType.LocalTest) {
|
|
|
+ return "ws://192.168.101.14:11811/SmartBowGameServer";
|
|
|
+ }
|
|
|
+ if (serverType == ServerType.Produce) {
|
|
|
+ return "ws://49.234.219.63:11811/SmartBowGameServer";
|
|
|
+ }
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|