微信开放平台》第三方平台》第三方提交的代码包提交审核
组织数据如下:
$data = [
‘item_list’ => [//子项通过上边的getCategory接口获取
[
// ‘address’ => $result[“page_list”][0], //从getPage接口获取
‘address’ => ‘index’, //从getPage接口获取
‘tag’ => $tag, //小程序的标签,多个标签用空格分隔,标签不能多于10个,标签长度不超过20
‘first_class’ => $first_class,
‘second_class’ => $second_class,
// ‘third_class’ => ‘’,
‘first_id’ => $first_id,
‘second_id’ => $second_id,
// ‘third_id’ => ‘’,
‘title’ => ‘but’, //小程序页面的标题,标题长度不超过32
]
],
];
$response = $client->request(‘POST’, $uri, [
‘body’ => json_encode($data, JSON_UNESCAPED_UNICODE),
// ‘body’ => json_encode($data),
‘headers’ => [‘content-type’ => ‘application/json’],
]);
打印后发送数据如下:
array:2 [▼
“body” => “{“item_list”:[{“address”:“index”,“tag”:“线下培训”,“first_class”:“教育”,“second_class”:“培训机构”,“first_id”:“8”,“second_id”:“37”,“title”:“but”}]}”
“headers” => array:1 [▶]
]
返回结果:
array(2) { [“errcode”]=> int(85008) [“errmsg”]=> string(52) “category is in invalid format hint: [ZRKeqA07682756]” }
上边的类目 信息都是通过 获取账号可以设置的所有类目 接口获取的,
问下是什么问题造成的。
代码如下:
APPID:wx7a6198a45c9b60b5