小程序wx.request接受json的bug
wx.request API接受json的bug描述
后端返回json其中集合中有一个字段为createtime,小程序success接受到数据后与实际值不符,其中的集合按createtime字段进行了降序。
后端json返回数据为:
{ "code": "0", "operations": null, "message": "成功", "data": [ { "createtime": "2018-08-31 11:49:35", "flag": "0", "confirmtime": null, "processing_opinion": null, "alertorName": "客厅开关", "userName": null, "spare": "1" }, { "createtime": "2018-09-10 11:07:44", "flag": "2", "confirmtime": "2018-09-11 12:18:44", "processing_opinion": "测试", "alertorName": "卧室开关", "userName": "测试小号", "spare": "1" }, { "createtime": "2018-08-29 11:00:47", "flag": "2", "confirmtime": "2018-08-31 14:34:32", "processing_opinion": "1234", "alertorName": "厨房开关", "userName": "李晓鹏", "spare": "1" } ]}
success中接受json为:
注:目前测试只有字段key为createtime发生以上bug,其他单词为发现此bug。