新增草稿API:https://api.weixin.qq.com/cgi-bin/draft/add?access_token=ACCESS_TOKEN
图文内容:
{
"articles": [{
"title": "图文带小程序卡片哈哈",
"author": "哈哈",
"contentType": "IMAGE_TEXT",
"content": "<img class=\"media-wrap image-wrap\" src=\"http://qa-oem-devtest.oss-cn-hangzhou.aliyuncs.com/user-dir-prefix/16762691941823711c32d670e30699a499d9475f79e47.png?Expires=1709049600&OSSAccessKeyId=LTAI4GDr25nznntLEpsdxkW9&Signature=LC2TGqq1tegL7dkpMZKY2ETTT7w%3D\" >上传一个图片试试<mp-miniprogram data-miniprogram-appid=\"wxc7deaa434122136e\" data-miniprogram-path=\"pages/index/index\" data-miniprogram-title=\"哈哈乐\" data-miniprogram-imageurl=\"http://mmbiz.qpic.cn/mmbiz_jpg/n0yaSg6KCISaJaic8udchUZibnAibpFQa3BoONoQ2ZvZQQWYgkUDU3R7vxNabD28cWcExwc2hG6wGtAXa3ZbmX7RQ/0\" data-miniprogram-type=\"card\" ></mp-miniprogram>",
"digest": "图文加小程序卡片"
}]
}
图文创建并发布成功,但是出现了小程序图标为空的情况:
查看页面源码,发现
图文发布后的URL为:
请问这是什么原因造成的?
data-miniprogram-avatar 没有传入这个属性