Skip to content

Commit c311f6e

Browse files
committed
fix 空间分析服务请求无结果问题
1 parent 65055ac commit c311f6e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Core/iServer/SpatialAnalystBase.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,12 @@ SuperMap.REST.SpatialAnalystBase = SuperMap.Class(SuperMap.CoreServiceBase, {
5959
} else if (result.recordset && result.recordset.features) {
6060
analystResult = JSON.parse(geoJSONFormat.write(result.recordset.features));
6161
}
62-
63-
} else {
62+
}
63+
if (!analystResult) {
6464
analystResult = result;
6565
}
66-
me.events.triggerEvent("processCompleted", {result: analystResult});
66+
67+
me.events.triggerEvent("processCompleted", {result: analystResult, originalResult: result});
6768
},
6869

6970
CLASS_NAME: "SuperMap.REST.SpatialAnalystBase"

0 commit comments

Comments
 (0)