微信分享无法分享成功?

小程序 文章 2021-02-07 15:41 528 0 全屏看文

AI助手支持GPT4.0

微信分享无法分享成功?Can't share on WeChat share successfully?

微信分享无法分享成功?

https://chinawrr.com/ 这个页面在分享的时候就可以看到自定义的文字和图片

https://chinawrr.com/staticData/xwjj/20210205/1921.html?from=news&ac=0 这个详情页在分享的时候获取不到自定义的文字和图片

可以帮我看下是我的链接有问题么

https://chinawrr.com/ This page can see customized text and pictures when sharing https://chinawrr.com/staticData/xwjj/20210205/1921.html?from=news&ac=0 This detail page can't get custom text and pictures when sharing. Can you help me to see if there is any problem with my link

回答:

给你的安然:

找到问题了,因为我携带的参数中有一个key是from,而from似乎也是微信那边的一个参数,因此就出现了冲突,谢谢大家帮忙解决问题

Brother斌🎈:

https://chinawrr.com/api/wx/config?url=https://chinawrr.com/staticData/xwjj/20210205/1921.html?from=news&ac=0&_=1612682351129

调这个接口生成签名的时候去掉?from=news&ac=0&_=1612682351129这段参数试一下,可能后端把这段参数也拿去生成签名了

桀:

经测试:https://chinawrr.com/staticData/xwjj/20210205/1921.html,不带参数,分享有图文

给你的安然:做页面分享的时候可以带参数吗?
给你的安然:这个参数在页面中涉及到了一个功能所以有必要携带

-EOF-

AI助手支持GPT4.0