有没有大佬帮小弟回答下,公众号与小程序绑定的前提下,在小程序上能否获取到公众号的openid?

小程序 文章 2021-12-09 17:40 13 0 全屏看文

有没有大佬帮小弟回答下,公众号与小程序绑定的前提下,在小程序上能否获取到公众号的openid?Did a big guy help the younger brother to answer that, under the premise that the official account is bound to the mini program, can the openid of the official account be obtained on the mini program?

有没有大佬帮小弟回答下,公众号与小程序绑定的前提下,在小程序上能否获取到公众号的openid?

现在有个需求,库里信息是基于公众号的openid存储的,小程序要读取这些信息,两边openid不一样,需要怎么解决呢。

There is a demand. Curi information is stored on the official account of openid, and the small program wants to read these information. The two sides of the openid are different. How do we need to solve this problem?

回答:

微喵网络:

用unionid

Alive!:用unionId在小程序内能查到公众号的openid嘛?是自定义库内存的还是调用官方API?
中式小面包:

用unionId去查公众号的信息

Alive!:用unionId在小程序内能查到公众号的openid嘛?是自定义库内存的还是调用官方API?
中式小面包:查你们自己数据库里的信息
Alive!:好的  感谢
Mr.Zhao:

根据unionid或者手机号

-EOF-