|
@@ -52886,13 +52886,13 @@ and limitations under the License.
|
|
withCredentials: !0
|
|
withCredentials: !0
|
|
};
|
|
};
|
|
|
|
|
|
-
|
|
|
|
|
|
+
|
|
let matchingUrls = [
|
|
let matchingUrls = [
|
|
'api/images',
|
|
'api/images',
|
|
'api/tiled_maps',
|
|
'api/tiled_maps',
|
|
'api/site_model',
|
|
'api/site_model',
|
|
- 'api/site_model/within',
|
|
|
|
- 'api/site_model/within_polygon',
|
|
|
|
|
|
+ //'api/site_model/within',
|
|
|
|
+ //'api/site_model/within_polygon',
|
|
'api/search/site_model',
|
|
'api/search/site_model',
|
|
'api/search/poi',
|
|
'api/search/poi',
|
|
'api/groups',
|
|
'api/groups',
|
|
@@ -52900,7 +52900,7 @@ and limitations under the License.
|
|
'api/user',
|
|
'api/user',
|
|
'api/users',
|
|
'api/users',
|
|
'api/route',
|
|
'api/route',
|
|
- //'status/health',
|
|
|
|
|
|
+ 'status/health',
|
|
'api/configs',
|
|
'api/configs',
|
|
'api/poi_type_groups',
|
|
'api/poi_type_groups',
|
|
'api/poi_types',
|
|
'api/poi_types',
|
|
@@ -52913,7 +52913,7 @@ and limitations under the License.
|
|
o.url = '/indoor/'+sceneNum+'/'+o.url;
|
|
o.url = '/indoor/'+sceneNum+'/'+o.url;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
console.log('url:'+o.url);
|
|
console.log('url:'+o.url);
|
|
//o.url = window.location.origin+o.url;
|
|
//o.url = window.location.origin+o.url;
|
|
//if(o.url.indexOf('api/site_model/closest')>-1||o.url.indexOf('api/images/')>-1||o.url.indexOf('api/site_model/within')>-1||o.url.indexOf('api/site_model/within_polygon')>-1||o.url.indexOf('api/search/site_model')>-1||o.url.indexOf('api/search/poi')>-1){
|
|
//if(o.url.indexOf('api/site_model/closest')>-1||o.url.indexOf('api/images/')>-1||o.url.indexOf('api/site_model/within')>-1||o.url.indexOf('api/site_model/within_polygon')>-1||o.url.indexOf('api/search/site_model')>-1||o.url.indexOf('api/search/poi')>-1){
|
|
@@ -152996,8 +152996,10 @@ and limitations under the License.
|
|
console.log('url2:'+a);
|
|
console.log('url2:'+a);
|
|
if(a.indexOf('/api')>-1||a.indexOf('/api/pois/filter')>-1||a.indexOf('/api/poses')>-1||a.indexOf('/api/images')>-1){
|
|
if(a.indexOf('/api')>-1||a.indexOf('/api/pois/filter')>-1||a.indexOf('/api/poses')>-1||a.indexOf('/api/images')>-1){
|
|
//o = 'GET';
|
|
//o = 'GET';
|
|
- //a = '../../indoor/'+sceneNum+a.substring(a.indexOf('/api/'));
|
|
|
|
- a = '/indoor/'+sceneNum+a.substring(a.indexOf('/api/'));
|
|
|
|
|
|
+ if(a.indexOf('/indoor/'+sceneNum) == -1){
|
|
|
|
+ a = '/indoor/'+sceneNum+a.substring(a.indexOf('/api/'));
|
|
|
|
+ }
|
|
|
|
+
|
|
a = window.location.origin+a.replace(ossPrefixDep,"");
|
|
a = window.location.origin+a.replace(ossPrefixDep,"");
|
|
}
|
|
}
|
|
else if(a.indexOf('/poi/icon')>-1||a.indexOf('/poi/image')>-1){
|
|
else if(a.indexOf('/poi/icon')>-1||a.indexOf('/poi/image')>-1){
|
|
@@ -153010,7 +153012,9 @@ and limitations under the License.
|
|
a = '/indoor/'+sceneNum+a.substring(a.indexOf('/api/'));
|
|
a = '/indoor/'+sceneNum+a.substring(a.indexOf('/api/'));
|
|
a = window.location.origin+a.replace(ossPrefixDep,"");
|
|
a = window.location.origin+a.replace(ossPrefixDep,"");
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ else if(a.indexOf('/status/health')>-1){
|
|
|
|
+ a = window.location.origin+'/indoor/'+sceneNum+"/"+a.replace(ossPrefixDep,"");
|
|
|
|
+ }
|
|
y.open(o, a, !0),
|
|
y.open(o, a, !0),
|
|
M(l, (function(t, e) {
|
|
M(l, (function(t, e) {
|
|
F(t) && y.setRequestHeader(e, t)
|
|
F(t) && y.setRequestHeader(e, t)
|