@@ -246,13 +246,13 @@ <h4 data-i18n="resources.title_iPortalSecurity"></h4>
246
246
//SuperMap.Support.cors = false;
247
247
$ ( document ) . ready ( function ( ) {
248
248
$ ( "#loginUrl_iportal" ) . val ( "http://localhost:8090/iportal" ) ;
249
- $ ( "#tokenServiceUrl_iportal" ) . val ( "https://iportal.supermap.io/iportal/web/services/707656630 " ) ;
250
- $ ( "#token_iportal" ) . val ( "_Bo_ksR9DC56MvnAXc6liuhAdWmmt1SuoLX758QIeBJUvteLqHqUeeHnQ6OU0i0VBoN5FjNP_SOQ2o1xyudBjA.." ) ;
249
+ $ ( "#tokenServiceUrl_iportal" ) . val ( "https://iportal.supermap.io/iportal/web/services/925052030 " ) ;
250
+ $ ( "#token_iportal" ) . val ( window . iportalToken ) ;
251
251
252
- $ ( "#serviceUrl_iportal" ) . val ( "http ://support .supermap.com.cn:8099/ywutslmu/ iserver/services/map-china400 /rest/maps/China_4326 " ) ;
253
- $ ( '#key_iportal' ) . val ( "CBIrkfXEAjydLrfp364qgM3P" ) ;
254
- $ ( "#serviceUrlMap_iportal" ) . val ( "http ://support .supermap.com.cn:8099/ywutslmu/ iserver/services/map-china400 /rest/maps/China_4326 " ) ;
255
- $ ( '#mapKey_iportal' ) . val ( "CBIrkfXEAjydLrfp364qgM3P" ) ;
252
+ $ ( "#serviceUrl_iportal" ) . val ( "https ://iportal .supermap.io/portalproxy/rz0fn8kv/ iserver/services/map-ChinaProvinces /rest/maps/ChinaProvinces " ) ;
253
+ $ ( '#key_iportal' ) . val ( window . iportalKey ) ;
254
+ $ ( "#serviceUrlMap_iportal" ) . val ( "https ://iportal .supermap.io/portalproxy/rz0fn8kv/ iserver/services/map-ChinaProvinces /rest/maps/ChinaProvinces " ) ;
255
+ $ ( '#mapKey_iportal' ) . val ( window . iportalKey ) ;
256
256
} ) ;
257
257
258
258
/*登录*/
@@ -318,6 +318,7 @@ <h4 data-i18n="resources.title_iPortalSecurity"></h4>
318
318
return ;
319
319
}
320
320
ol . supermap . SecurityManager . destroyToken ( serviceUrl ) ;
321
+ ol . supermap . SecurityManager . destroyKey ( serviceUrl ) ;
321
322
ol . supermap . SecurityManager . registerToken ( serviceUrl , key ) ;
322
323
requestService ( serviceUrl ) ;
323
324
}
@@ -336,6 +337,7 @@ <h4 data-i18n="resources.title_iPortalSecurity"></h4>
336
337
if ( ! checkUrl ( serviceUrl ) ) {
337
338
return ;
338
339
}
340
+ ol . supermap . SecurityManager . destroyToken ( serviceUrl ) ;
339
341
ol . supermap . SecurityManager . destroyKey ( serviceUrl ) ;
340
342
ol . supermap . SecurityManager . registerKey ( serviceUrl , key ) ;
341
343
requestService ( serviceUrl ) ;
0 commit comments