数据包是
{
"touser":"o4PRV5UqIgugOlRrkcjSVAJM1gEY2",
"template_id":"NiodHGP-3BEsrH9Ml-1XiDD2C9WnCA5qqMzn4PYp7Co",
"page":"pages/home_new/hj-index/hj-index",
"data":{
"name1":{
"value":"義"
},
"thing2":{
"value":"小区门店"
}
}
}
返回是{"errcode":47001,"errmsg":"data format error rid: 6216e970-5a1d73e6-24553274"}
具体是哪里格式有问题呢?
data 传 raw json 的
post($url, json_encode($data, JSON_UNESCAPED_UNICODE));