@@ -1616,9 +1616,12 @@ var CommonServiceBase = function () {
16161616 timeout: options.async ? 0 : null,
16171617 proxy: options.proxy
16181618 }).then(function (response) {
1619- return response.json();
1620- }).then(function (result) {
1621-
1619+ return response.text();
1620+ }).then(function (text) {
1621+ var result = new _SuperMap2["default"].Format.JSON().read(text);
1622+ if (!result) {
1623+ result = { error: text };
1624+ }
16221625 if (result.error) {
16231626 var failure = options.scope ? _SuperMap2["default"].Function.bind(options.failure, options.scope) : options.failure;
16241627 failure(result.error);
@@ -29847,17 +29850,16 @@ var EditFeaturesParameters = function () {
2984729850
2984829851 features = { ids: params.IDs };
2984929852 } else {
29850- if (params.features === null) return;
29851-
29852- len = params.features.length;
2985329853 features = [];
29854- for (var i = 0; i < len; i++) {
29855- feature = params.features[i];
29856- feature.geometry = _SuperMap2["default"].REST.ServerGeometry.fromGeometry(feature.geometry);
29857- features.push(feature);
29854+ if (params.features) {
29855+ len = params.features.length;
29856+ for (var i = 0; i < len; i++) {
29857+ feature = params.features[i];
29858+ feature.geometry = _SuperMap2["default"].REST.ServerGeometry.fromGeometry(feature.geometry);
29859+ features.push(feature);
29860+ }
2985829861 }
2985929862 }
29860-
2986129863 return _SuperMap2["default"].Util.toJSON(features);
2986229864 }
2986329865 }]);
0 commit comments