47001

小程序 文章 2022-03-29 22:00 0 全屏看文

4700147001

47001

https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/subscribe-message/subscribeMessage.send.html

这个data格式很怪啊

JSONObject jsonObject = new JSONObject();JSONObject jsonObject1 = new JSONObject();JSONObject jsonObject2 = new JSONObject();jsonObject1.put("value", "abcd");jsonObject.put("character_string1", jsonObject1);jsonObject2.put("value", "2019年12月23日");jsonObject.put("date3", jsonObject2);Object data = "{n" +        "    "character_string1":{n" +        "        "value":"abcd"n" +        "    },n" +        "    "date3":{n" +        "        "value":"2019年12月23日"n" +        "    }n" +        "}";// map也尝试过 都不行pickUpFullNoMessage.setData((Object) jsonObject);



求帮忙写出个

data的请求体 使用

{{character_string1.DATA}}

{{date3.DATA}}


https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/subscribe-message/subscribeMessage.send.html This data format is amazing: JSONObject jsonObject = new JSONObject(); JSONObject jsonObject1 = new JSONObject(); JSONObject jsonObject2 = new JSONObject(); jsonObject1. ("value", "abcd"); jsonObject. put("character_string1", jsonObject1); jsonObject2. ("value", "23 December 2019"); jsonObject. ("date3", jsonObject2); Object data = [\n" + + = [\nn n" + \ "character_string1...... "value ::"abcd\" " " " + } ,,,,," } + + n + + ["date 3........................................................................ March December March December 2012 2012 2012 2012 2012 2012 2012 2012 2012.......]Date"n" + « }n" + / "}";/ . map也尝试过 都不行pickUpFullNoMessage. setData((Object) jsonObject); Help to prepare a database request using {character_string1.DATA}{{date 3.DATA}}

回答:

Mr.Zhao:

拾忆:

数据是用POST方式提交的JSON数据,并不是字符串。

定个小目标:

是我尝试后返回

{errcode=47001, errmsg=data format error rid: 624307df-320d3509-08816fff}

-EOF-