收藏
回答

通过微信公众号群发接口群发的图文消息不显示嵌入的小程序卡片

问题:预览的图文中可以正常显示小程序卡片,群发出去后不显示小程序卡片。

操作路径:

1、微信图文内容为:https://mp.weixin.qq.com/s/ikYmd5Q9jYrsOdXBoBrxkw,内容交互为:点击图片后展示其他图文信息和小程序卡片。

2、通过上传图文消息素材【订阅号与服务号认证后均可用】上传图文素材,获取到meida_id。

3、使用步骤2调用根据OpenID列表群发接口进行群发,群发出来的链接为:https://mp.weixin.qq.com/s/ikYmd5Q9jYrsOdXBoBrxkw

预期表现:

与预览链接一样,正常显示页面中的小程序卡片才对。





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

2 个回答

  • 社区技术运营专员-娇华
    社区技术运营专员-娇华
    2020-04-07

    你好,需要补充下公众号的appid,请求包和回包,以及请求时间

    2020-04-07
    有用
    回复 11
    查看更多(6)
  • TargetSocial
    TargetSocial
    2020-04-09

    appid: wx8b68fd63edbd0716

    请求接口:https://api.weixin.qq.com/cgi-bin/media/uploadnews?access_token=ACCESS_TOKEN

    请求时间:2020-04-03 12:19:40

    请求包:

    {
       "articles": [	 
            {
                "thumb_media_id":"RmOAgmGIxtVSseajw4DTtaZSJRBnLBLkCT0OiVyiKlA",
                "author":"",		
                "title":"预警丨底妆不透气,你的毛孔还能撑多久?",		 
                "content_source_url":"",		
                "content":"<section style=\"display: block;padding-top: 0px;text-align: center;background-image: url(&quot;https://mmbiz.qpic.cn/mmbiz_png/d3SLDWZia9Hia7Q8wxrRDlcYszxLrT4bHLhNRKkiaNs3vrU45NU9u3dwjQ3ctcM8tzkkDmiblgBIGymQ9uwfX5TlOQ/640?wx_fmt=png&quot;);background-size: 100%;background-repeat: no-repeat;\"><svg preserveaspectratio=\"xMidYMin meet\" style=\"display:block;background-image: url(&quot;https://mmbiz.qpic.cn/mmbiz_gif/d3SLDWZia9Hia7Q8wxrRDlcYszxLrT4bHLo1hgkF8IHmmSEia3ofpdLgyVQibMn56L7wEwGy0FewSicFOZb7ewWCusw/640?wx_fmt=gif&quot;);background-size: 100% auto;background-repeat: no-repeat;width: 100%;\" viewbox=\"0 0 750 1065\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\"></svg></section><section style=\"display: block;padding-top: 0px;text-align: center;background-image: url(&quot;https://mmbiz.qpic.cn/mmbiz_png/6oV3A8v2ZribgYFcMHbfCk2ib5CCvuEOFibTk3rficabxTtRCkkjeF5WaBAEibGJwFCOt27gjjvuRiallhqoLl36yapQ/640?wx_fmt=png&quot;);background-size: 100%;background-repeat: no-repeat;\"><svg preserveaspectratio=\"xMidYMin meet\" style=\"display:block;background-image: url(&quot;https://mmbiz.qpic.cn/mmbiz_png/d3SLDWZia9Hia7Q8wxrRDlcYszxLrT4bHLSN6yMibP3IPVjDWqCbwhkWCyM86VZaXcVW58Um833YZdWaeSrhTnLMw/640?wx_fmt=png&quot;);background-size: 100% auto;background-repeat: no-repeat;width: 100%;\" viewbox=\"0 0 750 416\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\"></svg></section><section style=\"display: block;margin-top: 0px;text-align: center;\"><mp-miniprogram data-miniprogram-appid=\"wx9198b21cfe5545f4\" data-miniprogram-path=\"pages/tabBar/product/product_details/product_details?id=LAN00071&amp;utm_source=wechat_article&amp;utm_campaign=200402_官网组_底妆不透气,你的毛孔还能撑多久?_TIUpdp页\" data-miniprogram-nickname=\"兰蔻官网精品商城\" data-miniprogram-avatar=\"http://mmbiz.qpic.cn/mmbiz_png/WW16d67zpWhMzFNmKpAKBE2VKot60ibohnouLpr4dU480dC2TzvQL00czCMicZ2ppNRo74Vib2MplAI7rUNwuKI9Q/640?wx_fmt=png&amp;wxfrom=200\" data-miniprogram-title=\"前往兰蔻官网精品商城,尽享更多好礼!\" data-miniprogram-imageurl=\"http://mmbiz.qpic.cn/mmbiz_jpg/d3SLDWZia9Hia7Q8wxrRDlcYszxLrT4bHLj7mSd9prksDyiaFEsNpv3qvKCibyfA3JRaibOibFVQicFlgGK7w4hicaTJiaQ/0?wx_fmt=jpeg\" data-miniprogram-type=\"card\" data-miniprogram-servicetype=\"0\"></mp-miniprogram></section></section><section style=\"display: block;margin: 0px auto;width: 100%;text-align: center;\"><svg height=\"580\" opacity=\"0\" preserveaspectratio=\"xMidYMin meet\" style=\"background-image: url(&quot;https://mmbiz.qpic.cn/mmbiz_gif/d3SLDWZia9Hia7Q8wxrRDlcYszxLrT4bHLZA6T9k94ic0WltQ7pmjtOV9KyIj76P5qre2OOW6xZE5uSZkkffETnDA/640?wx_fmt=gif&quot;);background-size: 100% auto;background-repeat: no-repeat;width: 100%;\" viewbox=\"0 0 750 9420\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\"><set attributename=\"opacity\" from=\"0\" to=\"1\" begin=\"click\"></set><set attributename=\"height\" from=\"560\" to=\"100%\" begin=\"click\"></set><g transform=\"translate(0, 980)\"><rect width=\"750\" height=\"155\" opacity=\"0\" fill=\"#FFFFFF\"></rect></g></svg></section></section></section><p>&nbsp;<br  /></p><p><img class=\"rich_pages\" data-ratio=\"0.09375\" data-s=\"300,640\" src=\"https://mmbiz.qpic.cn/mmbiz_png/d3SLDWZia9HgHL3icdoP734RKF1LwjHoYIocpiaW38uXLPhyMTHvvYREHLPFtgxQGwatUPcrTs9A1InboJ5vnvhlw/640?wx_fmt=png\" data-type=\"png\" data-w=\"640\" style=\"\"  /></p><p><img class=\"rich_pages\" data-ratio=\"0.359375\" data-s=\"300,640\" src=\"https://mmbiz.qpic.cn/mmbiz_jpg/d3SLDWZia9HgHL3icdoP734RKF1LwjHoYIek0Klj1LZj4cywbfzTIMAwR4siaV7EcUh6xsAKWVRgERb5VRH3hoQHg/640?wx_fmt=jpeg\" data-type=\"jpeg\" data-w=\"640\" style=\"\"  /></p>",		 
                "digest":"兰蔻重新定义持妆粉底液,持妆透气不假面",
                "show_cover_pic":1,
                "need_open_comment":1,
                "only_fans_can_comment":0
            },	 
            {
                "thumb_media_id":"qI6_Ze_6PtV7svjolgs-rN6stStuHIjs9_DidOHaj0Q-mwvBelOXCFZiq2OsIU-p",
                "author":"",		
                "title":"超轻薄防晒,你还缺一支小白管!,		 
                "content_source_url":"www.qq.com",		
                "content":"<section data-role=\"outer\" label=\"Powered by 135editor.com\" style=\"font-size: 16px;\"><section style=\"box-sizing: border-box;\"><section style=\"text-align: center;margin: -1px 0%;box-sizing: border-box;\"><section style=\"max-width: 100%;vertical-align: middle;display: inline-block;line-height: 0;box-sizing: border-box;\">&nbsp;......",		 
                "digest":"全天候安心防护,室内室外,一支搞定",
                "show_cover_pic":1,
                "need_open_comment":1,
                "only_fans_can_comment":0
            }
       ]
    }
    


    回包:

    {
       "type":"news",
       "media_id":"PZx4gWmQjcPmZdZGyUGV43JI27vi--8LEM3CRMahA1HYE3aXJ0RSJ0B2jowcD2A_",
    }
    


    2020-04-09
    有用 1
    回复
登录 后发表内容
问题标签