收藏
回答

新增草稿API图文中插入小程序发布后小程序图标不显示?

新增草稿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>",

"cover": "http://qa-oem-devtest.oss-cn-hangzhou.aliyuncs.com/user-dir-prefix/1676431580084051d2d86-1a7e-4bec-a18b-d5c695636277%20%282%29.png?Expires=1709049600&OSSAccessKeyId=LTAI4GDr25nznntLEpsdxkW9&Signature=NsWhShiNUe7h3r4TLgz5xVG0bgA%3D",

"digest": "图文加小程序卡片"

}]

}

图文创建并发布成功,但是出现了小程序图标为空的情况:

查看页面源码,发现

图文发布后的URL为:

https://mp.weixin.qq.com/s?__biz=MzkzMDM4NDI3MQ==&mid=2247484622&idx=1&sn=075ab1296280bf399335643ad5660ed9&chksm=c27a542ef50ddd3838b20aa7ce72ec72c7b160eed4b37f32f939829183284e8a89834d6d38ca#rd

请问这是什么原因造成的?






回答关注问题邀请回答
收藏

1 个回答

  • 瓊
    2023-03-01

    data-miniprogram-avatar 没有传入这个属性

    2023-03-01
    有用
    回复
登录 后发表内容
问题标签