如何知道其它啊用户点击了转发分享的小卡片?

小程序 文章 2020-09-03 11:41 490 0 全屏看文

AI助手支持GPT4.0

如何知道其它啊用户点击了转发分享的小卡片?How do I know that other users have clicked the small card for forwarding and sharing?

如何知道其它啊用户点击了转发分享的小卡片?

目前需要实现的功能:

我在小游戏里转发分享,当有其他用户点击我转发出来的小卡片时,我获得奖励,怎么知道别人点击了卡片?

At present, I need to realize the function: I forward and share in the small game. When other users click on the small card I forward, I get a reward. How do I know that others click on the card?

回答:

默认²⁰²⁰:

withShareTicket 了解一下

Acer233:用wx.getShareInfo 一直是fail
迷失的故渊:

路径上拼个参数 可以再onload中拿到

微喵网络:

诱导分享了解一下

?:

分享出去携带参数,别人点击的时候,可以在你分享出去带的页面里获取到这个参数,就知道是谁分享出去的卡片。

Acer233:先设置wx.updateShareMenu({ withShareTicket: true,}),然后使用wx.getShareInfo里获取?

-EOF-

AI助手支持GPT4.0