Browse Source

bug991 点云文件下载写死的问题

DGJ 1 year ago
parent
commit
a2020ac1c3
2 changed files with 12 additions and 5 deletions
  1. 7 2
      Assets/2.0/Tools/HttpAction.cs
  2. 5 3
      Assets/Scripts/Blue/Service/IPointService.cs

+ 7 - 2
Assets/2.0/Tools/HttpAction.cs

@@ -60,7 +60,8 @@ public class HttpAction :Singleton<HttpAction>
         {
             if (HttpSDKAction.Instance.loginUrl == "")
             {
-                HttpSDKAction.Instance.loginUrl = "https://api-fat2.ghz-tech.com/mr-navigator/v1";
+                // HttpSDKAction.Instance.loginUrl = "https://api-fat2.ghz-tech.com/mr-navigator/v1";
+               // HttpSDKAction.Instance.loginUrl = HttpSDKAction.Instance.managerUrl;
             }
             return HttpSDKAction.Instance.loginUrl;
         }
@@ -74,7 +75,8 @@ public class HttpAction :Singleton<HttpAction>
         {
             if (HttpSDKAction.Instance.loginUrl == "")
             {
-                HttpSDKAction.Instance.loginUrl = "https://api-fat2.ghz-tech.com/mr-navigator/v1";
+                // HttpSDKAction.Instance.loginUrl = "https://api-fat2.ghz-tech.com/mr-navigator/v1";
+              //  HttpSDKAction.Instance.loginUrl = HttpSDKAction.Instance.managerUrl;
             }
             return HttpSDKAction.Instance.loginUrl;
         }
@@ -104,5 +106,8 @@ public class HttpAction :Singleton<HttpAction>
     //识别的景点
     public const string sn_viewpoint = "/sn/viewpoint";
 
+    // 偏移角
+    public const string refrence = "/project/unityReference";
 
+    public const string pointcloud = "/project/pointcloudInfo";
 }

+ 5 - 3
Assets/Scripts/Blue/Service/IPointService.cs

@@ -54,8 +54,8 @@ public class PointService : IPointService
     }
     public void GetPointFileDownloadUrl(string methodName, string projectId, PointFileType fileType, Action<string> callback)
     {
-        string url = "https://api-fat2.ghz-tech.com/mr-navigator/v1/project/pointcloudInfo";// UrlPointCloud + methodName;
-
+      //  string url = "https://api-fat2.ghz-tech.com/mr-navigator/v1/project/pointcloudInfo";// UrlPointCloud + methodName;
+         string url = HttpSDKAction.Instance.managerUrl+HttpAction.pointcloud;// UrlPointCloud + methodName;
         // 创建UnityWebRequest
       //  UnityWebRequest request = new UnityWebRequest(url, "POST");
 
@@ -79,7 +79,9 @@ public class PointService : IPointService
 
     public void GetRefrencePos(int sceneID)
     {
-        CoroutineSystem.Instance.Start_Coroutine(GetObjectOfRefrence(UrlObjOfReference,sceneID));
+      //  CoroutineSystem.Instance.Start_Coroutine(GetObjectOfRefrence(UrlObjOfReference,sceneID));
+
+        CoroutineSystem.Instance.Start_Coroutine(GetObjectOfRefrence(HttpSDKAction.Instance.managerUrl+HttpAction.refrence, sceneID));
     }
 
     #region 协程