看了接口参数,使用post,就是出现44003
最后发现原因,是数据错误导致
数据参考格式:
$jsonArr = array(
"articles"=> array(
array(// 我就是少了这层array 才会报empty news data 错误
"ti
"thumb_media_id"=> '填写素材id',
"author"=> 'martin',
"digest"=> 'digest',
"show_cover_pic"=> 0,
"content"=> $content,
"content_source_url"=> 'https://www.baidu.com/',
),
array(
"ti
"thumb_media_id"=> '填写素材id',
"author"=> 'martin',
"digest"=> 'digest',
"show_cover_pic"=> 0,
"content"=> "content",
"content_source_url"=> 'https://www.baidu.com/',
)
),
);
$json3=json_encode($jsonArr,JSON_UNESCAPED_UNICODE);
进行传输
最佳答案