使用第三方平台开发被动回复客户消息时候为什么不支持微信小程序链接?
发布于 5 年前 作者 tanyang 3434 次浏览 来自 问答
message.setContent("<a href=\"https://www.baidu.com\" 
data-miniprogram-appid=\"wxc4*****6a0\" 
data-miniprogram-path=\"pages/gift_detail?id=988348416\">点击文字跳转小程序</a>");
1 回复

尝试了普通链接是可以的,但是小程序不行,特意通过微信后台配置了小程序,发现可以识别

因为是使用的 xml 的方式,最后被转换成如下内容

 <Content>&lt;a href=&quot;https://www.baidu.com&quot; data-miniprogram-appid=&quot;wxc4c2***5cd76a0&quot; data-miniprogram-path=&quot;pages/gift_detail?from=notify&amp;id=628988348416&quot;&gt;点击文字跳转小程序&lt;/a&gt;</Content>

</xml>

回到顶部