i-Things / iThings

物联网设备接入平台
http://ithings.net.cn/
GNU Affero General Public License v3.0
395 stars 73 forks source link

ithings的post接口不支持带XX.XX的json名字规则的数据。 #260

Open wfjdemmye opened 9 months ago

wfjdemmye commented 9 months ago

向apisvr发送POST json数据时,如下json的数据格式会出现解析异常。 { "api.apiDebug" : "1", "api.secret" : "035c73f7-bb6b-4889-a715-d9eb2d1925cc", "ffmpeg.bin" : "/usr/local/bin/ffmpeg", "ffmpeg.cmd" : "%s -re -i %s -c:a aac -strict -2 -ar 44100 -ab 48k -c:v libx264 -f flv %s", "ffmpeg.log" : "./ffmpeg/ffmpeg.log", "general.mediaServerId" : "your_server_id", "general.addMuteAudio" : "1", "general.enableVhost" : "1", "general.flowThreshold" : "1024", } ![Uploading d68bdf465cb3e565c4eab4de77dfc91.png…]() 带点的json名无法正常被解析。

测试示例见附件 post接收json数据异常.txt