直播创建房间接口提示parameter startTimeorendTime is invali?
发布于 6 年前 作者 pshao 5124 次浏览 来自 问答

提交的参数是:

{"coverImg":"WYuKkWB8n0mF-W3bcqZTCrxU-XwcEU8ym1E0sh4AU8LyFwfeLGD2CIAB62fGPmnr","closeGoods":"0","closeLike":"0","name":"测试房间1","screenType":"0","startTime":1591210800000,"endTime":1591221600000,"type":"0","anchorName":"狗子","shareImg":"WYuKkWB8n0mF-W3bcqZTCrxU-XwcEU8ym1E0sh4AU8LyFwfeLGD2CIAB62fGPmnr","closeComment":"0","anchorWechat":"XXXX"}

用的https请求,请求的接口为:

https://api.weixin.qq.com/wxaapi/broadcast/room/create?access_token=

但是总是提示报

{"errcode":200002,"errmsg":"parameter startTime or endTime is invalid"} 根据文档看好像参数名称啥的都没错……日期也转成了时间戳的形式。

求解。


1 回复

{"coverImg":"WYuKkWB8n0mF-W3bcqZTCrxU-XwcEU8ym1E0sh4AU8LyFwfeLGD2CIAB62fGPmnr","closeGoods":"0","closeLike":"0","name":"测试房间1","screenType":"0","startTime":1591210800,"endTime":1591221600,"type":"0","anchorName":"狗子","shareImg":"WYuKkWB8n0mF-W3bcqZTCrxU-XwcEU8ym1E0sh4AU8LyFwfeLGD2CIAB62fGPmnr","closeComment":"0","anchorWechat":"XXXX"} 参数换成这样也是报同样的错误。文档的参数匹配没问题。求解

回到顶部