请求参数:
{
"name": "测试直播房间1",
"coverImg": "9vxXn4yEDSbO1ss3nWFybuVXja1yBwV0sFYW2H",
"starttime": 1604041200000,
"endtime": 1604044800000,
"anchorName": "zefzhang1",
"anchorWechat": "Gloveywj",
"subAnchorWechat": "",
"createrWechat": "Gloveywj",
"shareImg": "9vxXn4yEDSbO1ss3nWFybuVXja1yBwV0sFYW2H",
"feedsImg": "9vxXn4yEDSbO1ss3nWFybuVXja1yBwV0sFYW2H",
"isFeedsPublic": 1,
"type": 1,
"screenType": 0,
"closeLike": 0,
"closeGoods": 0,
"closeComment": 0,
"closeReplay": 1,
"closeShare": 0,
"closeKf": 0
}
返回:
{
"errmsg": "parameter startTime or endTime is invalid rid: 5f9bae5f-6fadf8fb-66f19011",
"errcode": 200002
}
请求工具postman
startTime和endTime大小写没写对,并且这两个参数应该是以秒为单位,帖子里面传的参数是毫秒。
详细文档见:https://developers.weixin.qq.com/miniprogram/dev/framework/liveplayer/studio-api.html#1
["errmsg"]=> string(66) "parameter shareImg must no be null rid: 60f93024-126ce126-4d207dbf" ["errcode"]=> int(200002) }