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>
322322 }
323323 L . supermap . SecurityManager . destroyToken ( serviceUrl ) ;
324324 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 ) ;
334326 }
335327
336328 function getPortalTokenServiceUrl ( ) {
Original file line number Diff line number Diff line change @@ -319,15 +319,7 @@ <h4 data-i18n="resources.title_iPortalSecurity"></h4>
319319 }
320320 ol . supermap . SecurityManager . destroyToken ( serviceUrl ) ;
321321 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 ) ;
331323 }
332324
333325 function getPortalTokenServiceUrl ( ) {
You can’t perform that action at this time.
0 commit comments