问题:

微搭中

$app.auth.currentUser.openId 一进入小程序时不一定能获取到

 

解决:

通过调用自定义的云函数 getOpenId2 解决

getOpenId2 代码

 

 

参考:

https://cloud.tencent.com/document/product/1301/73438

https://developer.aliyun.com/article/1061987

 

发表评论

电子邮件地址不会被公开。