小程序获取公众号openID可行吗?

小程序 文章 2021-12-23 13:20 359 0 全屏看文

AI助手支持GPT4.0

小程序获取公众号openID可行吗?Is it feasible for the mini program to obtain the official account openID?

小程序获取公众号openID可行吗?

小程序收款之后需要核对微信号和公众号openId才能结算资金,小程序怎么样才能拿到公众号的openId呢?我能想到的就是在小程序里放一个公众号的链接,点击链接跳转去公众号里关注公众号拿到openId和unionid;然后比对小程序unionid;就可以拿到公众号openId了,但是我觉得用户体验太差,而且也有很多不确定性,有什么更好的方式吗?

Small program receipts need to check the micro signal and official account openId to settle funds. How can small programs get the official account number openId? Official account is the official link. I can think of a link in the small program, click the link to jump to the official account and pay attention to the official account number to get openId and unionid. Then compare the applet unionid; You can get the official account number openId, but I think the user experience is very poor, and there are many uncertainties. What better way?

回答:

???:

小程序用户登录时加一个webview加载页面,页面用来获取相关公众号的openId

老张:

用unionid

青寒:

你这个业务相当于要求用户必须关注你们公众号才行。

那直接添加结算说明,注明需要去关注公众号才能进行结算。这样就能实现你的后续unionid比对了。

但为啥一定要用公众号openid作为结算依据呢?

DES:好像后台里面设置结算的账号就是需要公众号的openID

-EOF-

AI助手支持GPT4.0