File tree Expand file tree Collapse file tree 2 files changed +2
-18
lines changed Expand file tree Collapse file tree 2 files changed +2
-18
lines changed Original file line number Diff line number Diff line change @@ -322,15 +322,7 @@ <h4 data-i18n="resources.title_iPortalSecurity"></h4>
322
322
}
323
323
L . supermap . SecurityManager . destroyToken ( serviceUrl ) ;
324
324
L . supermap . SecurityManager . registerToken ( serviceUrl , key ) ;
325
- var iPortalService = new L . supermap . iPortalService ( serviceUrl ) ;
326
- iPortalService . load ( ) . then ( function ( json ) {
327
- if ( json && json . error ) {
328
- widgets . alert . showAlert ( JSON . stringify ( json . error ) , false ) ;
329
- } else {
330
- widgets . alert . showAlert ( "proxiedUrl:" + iPortalService . proxiedUrl , true ) ;
331
- }
332
-
333
- } ) ;
325
+ requestService ( serviceUrl ) ;
334
326
}
335
327
336
328
function getPortalTokenServiceUrl ( ) {
Original file line number Diff line number Diff line change @@ -319,15 +319,7 @@ <h4 data-i18n="resources.title_iPortalSecurity"></h4>
319
319
}
320
320
ol . supermap . SecurityManager . destroyToken ( serviceUrl ) ;
321
321
ol . supermap . SecurityManager . registerToken ( serviceUrl , key ) ;
322
- var iPortalService = new ol . supermap . iPortalService ( serviceUrl ) ;
323
- iPortalService . load ( ) . then ( function ( json ) {
324
- if ( json && json . error ) {
325
- widgets . alert . showAlert ( JSON . stringify ( json . error ) , false ) ;
326
- } else {
327
- widgets . alert . showAlert ( "proxiedUrl:" + iPortalService . proxiedUrl , true ) ;
328
- }
329
-
330
- } ) ;
322
+ requestService ( serviceUrl ) ;
331
323
}
332
324
333
325
function getPortalTokenServiceUrl ( ) {
You can’t perform that action at this time.
0 commit comments