我提交的post参数:{"name": "618直播测试","coverImg": "tzwXEf8seqlXZk39TqDd_gRMFQRr3ETo3_GbLoOwMVsHL08yNjTBGbEwv7LqZR_7","startTime": 1592046000,"endTime": 1592060400,"anchorName": "老陶","anchorWechat": "***","shareImg": "rIuSz_hjF4-McnBwyhM97NBsgwvy8jDQxyGrhfTKwLyaJbkn7fOL307z1OTqr9JD" ,"type": 0 ,"screenType": 0,"closeLike": 0 ,"closeGoods": 0,"closeComment": 0}
返回错误:{"errmsg":"parameter startTime or endTime is invalid","errcode":200002}
这两个时间值都是从官方后台已经开通的直播间拷贝的啦,绝对不错的,帮分析下
有用问题解决了,谢谢哈!加个$headers = array("Content-type: application/json;charset='utf-8'","Accept: application/json","Cache-Control: no-cache", "Pragma: no-cache");
已经找到问题了,ContentType:='application/json';这个提示也是很坑呢,就是谁根本没有获得参数,同类的后台调用很多不用设置也成功了