SuperMap/iClient-JavaScript

资源请求JSON格式不标准

Zoupers opened this issue · 1 comments

Request a feature or report a bug? [这是一个需求还是一个缺陷]

缺陷

One-line summary [问题简述]

发送的JSON请求所附带的字符串参数不是标准JSON字符串

Version [产品及版本]

  • iClient product (for leaflet,for openlayers,for mapboxgl,classic)[iClient 产品]: all
  • iClient version [iClient 版本]: all
  • Browser version [浏览器类型和版本]: all
  • OS Version [操作系统类型和版本]: all

Actual Behavior [当前现象]

请求发送时键为单引号,下面是一个例子
{'datasetNames':["D"],'getFeatureMode':"SQL",'queryParameter':{'attributeFilter':"ID %26gt;= 0"}}

Expected Behavior [期望现象]

期望发送这样的
{"datasetNames":["D"],"getFeatureMode":"SQL","queryParameter":{"attributeFilter":"ID %26gt;= 0"}}

Example of reproducing the issue [重现现象的例子]

https://github.com/SuperMap/vue-iclient 样例请求

同时我也找到了需要解决这个BUG的代码所在的地方,除了这个以外,应该还有几个类似的地方

iClient-JavaScript/src/common/iServer/QueryBySQLService.js


What is motivation or use case for changing the behavior? [需求的场景和目的是什么?]

stale commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.