Преглед изворни кода

1.添加一个测试服务器访问版本

slambb пре 1 година
родитељ
комит
3c02c7f0a3
1 измењених фајлова са 7 додато и 2 уклоњено
  1. 7 2
      Assets/BowArrow/Scripts/CommonConfig.cs

+ 7 - 2
Assets/BowArrow/Scripts/CommonConfig.cs

@@ -62,8 +62,8 @@ public class CommonConfig
     //实体模具箭重,单位克
     public static float arrowWeight = 75;
 
-    public enum ServerType { LocalTest, Produce };
-    private static ServerType serverType = ServerType.Produce;
+    public enum ServerType { LocalTest, Produce, Test };
+    private static ServerType serverType = ServerType.Test;
     //网关服务器访问地址
     public static string gateServerURL
     {
@@ -76,6 +76,11 @@ public class CommonConfig
                 else if (serverIndex == 1)
                     return "https://www.wonderfittervr.com/SmartBowBusinessServer";//"http://54.165.56.200/SmartBowBusinessServer";
             }
+            else if(serverType == ServerType.Test) {
+                Debug.Log("****************** 测试服务器 ********************");
+                //测试服务器
+                return "http://www.b-beng.com/SmartBowBusinessServer";
+            }
             return "http://192.168.10.105:11432/SmartBowBusinessServer";
         }
     }