11/* Copyright© 2000 - 2020 SuperMap Software Co.Ltd. All rights reserved.
22 * This program are made available under the terms of the Apache License, Version 2.0
33 * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
4- import { SuperMap } from '../SuperMap' ;
5- import { ProcessingServiceBase } from './ProcessingServiceBase' ;
6- import { BuffersAnalystJobsParameter } from './BuffersAnalystJobsParameter' ;
4+ import { SuperMap } from '../SuperMap' ;
5+ import { Util } from '../commontypes/Util' ;
6+ import { ProcessingServiceBase } from './ProcessingServiceBase' ;
7+ import { BuffersAnalystJobsParameter } from './BuffersAnalystJobsParameter' ;
78
89/**
910 * @class SuperMap.BuffersAnalystJobsService
@@ -18,8 +19,8 @@ import {BuffersAnalystJobsParameter} from './BuffersAnalystJobsParameter';
1819export class BuffersAnalystJobsService extends ProcessingServiceBase {
1920 constructor ( url , options ) {
2021 super ( url , options ) ;
21- this . url += "/ spatialanalyst/buffers" ;
22- this . CLASS_NAME = " SuperMap.BuffersAnalystJobsService" ;
22+ this . url = Util . urlPathAppend ( this . url , ' spatialanalyst/buffers' ) ;
23+ this . CLASS_NAME = ' SuperMap.BuffersAnalystJobsService' ;
2324 }
2425
2526 /**
@@ -43,7 +44,7 @@ export class BuffersAnalystJobsService extends ProcessingServiceBase {
4344 * @param {string } id - 指定要获取数据的id。
4445 */
4546 getBuffersJob ( id ) {
46- super . getJobs ( this . url + '/' + id ) ;
47+ super . getJobs ( Util . urlPathAppend ( this . url , id ) ) ;
4748 }
4849
4950 /**
@@ -57,4 +58,4 @@ export class BuffersAnalystJobsService extends ProcessingServiceBase {
5758 }
5859}
5960
60- SuperMap . BuffersAnalystJobsService = BuffersAnalystJobsService ;
61+ SuperMap . BuffersAnalystJobsService = BuffersAnalystJobsService ;
0 commit comments