当前位置:Gxlcms > PHP教程 > 关于微信上传永久素材接口报错(emptynewsdata)

关于微信上传永久素材接口报错(emptynewsdata)

时间:2021-07-01 10:21:17 帮助过:116人阅读

https://api.weixin.qq.com/cgi-bin/material/add_news?access_token=XXX&type=thumb
https://api.weixin.qq.com/cgi-bin/media/uploadnews?access_token=XXX
首先这2个都是微信开发文档上的 上传图文素材接口
我2个都使用了都报错
{"errcode":44003,"errmsg":"empty news data hint: [QkkmMA0594ent2]"}
POST提交的数据:

{    
"articles": [        
{            
"thumb_media_id":"qI6_Ze_6PtV7svjolgs-rN6stStuHIjs9_DidOHaj0Q-mwvBelOXCFZiq2OsIU-p",            
"author":"xxx",            
"title":"Happy Day",            
"content_source_url":"www.qq.com",            
"content":"content",            
"digest":"digest",           
"show_cover_pic":"1"        
},        
{            
"thumb_media_id":"qI6_Ze_6PtV7svjolgs-rN6stStuHIjs9_DidOHaj0Q-mwvBelOXCFZiq2OsIU-p",            
"author":"xxx",            
"title":"Happy Day",            
"content_source_url":"www.qq.com",            
"content":"content",           
 "digest":"digest",           "
 show_cover_pic":"1"        
 }    
 ]
 }

回复讨论(解决方案)

求大神@xuzuning

求大神@xuzuning

人气教程排行