您好,这边也有同样的问题,开发语言是java,附上接口及出入参,麻烦看下怎么解决。 操作接口:直播间导入商品,接口url:https://api.weixin.qq.com/wxaapi/broadcast/room/addgoods?access_token= 请求参数json: { "ids": [52], "roomId": 119 } 接口返回json: [{"code":0,"wxError":{"errorCode":300022,"errorMsg":"roomid is not exsit rid: 60e51703-01e91312-60a1f4ef","json":"{\"errmsg\":\"roomid is not exsit rid: 60e51703-01e91312-60a1f4ef\",\"errcode\":300022}"},"detailMessage":"{\"errmsg\":\"roomid is not exsit rid: 60e51703-01e91312-60a1f4ef\",\"errcode\":300022}","stackTrace":[],"suppressedException:[]}]"
请问已经解决了吗,我也遇到了相同问题
你好,麻烦提供下appid
private function http_post($url,$data = null){
$headers = array("Content-type: application/json;charset='utf-8'","Accept: application/json","Cache-Control: no-cache", "Pragma: no-cache");
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, FALSE);
if (!empty($data)){
curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
}
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
$output = curl_exec($curl);
curl_close($curl);
return $output;
}
操作接口:直播间导入商品,接口url:https://api.weixin.qq.com/wxaapi/broadcast/room/addgoods?access_token=
请求参数json:
{
"ids": [52],
"roomId": 119
}
接口返回json:
[{"code":0,"wxError":{"errorCode":300022,"errorMsg":"roomid is not exsit rid: 60e51703-01e91312-60a1f4ef","json":"{\"errmsg\":\"roomid is not exsit rid: 60e51703-01e91312-60a1f4ef\",\"errcode\":300022}"},"detailMessage":"{\"errmsg\":\"roomid is not exsit rid: 60e51703-01e91312-60a1f4ef\",\"errcode\":300022}","stackTrace":[],"suppressedException:[]}]"