萌新提问大佬,我从云数据库中拿到的_openid是唯确定一个设备还是可以确定一个账号?

小程序 文章 2021-03-30 12:42 323 0 全屏看文

AI助手支持GPT4.0

萌新提问大佬,我从云数据库中拿到的_openid是唯确定一个设备还是可以确定一个账号?Mengxin asks the boss, is the _openid I got from the cloud database only a device or an account?

萌新提问大佬,我从云数据库中拿到的_openid是唯确定一个设备还是可以确定一个账号?

最近开始学习微信小程序,我好像明白不同的人往数据库中添加数据会产生不同的_openid,那么我可不可以使用这个_openid作为识别用户的唯一标准,就像一个用户想要注册账号,所以他需要往数据库中写入账号和密码,数据库中会自动出来一个字段_openid,这个_openid可以用吗?

Recently I began to learn wechat applet. I seem to understand that different people will have different effects when they add data to the database_ Openid, can I use this_ Openid is the only standard to identify users, just like a user wants to register an account, so he needs to write the account and password to the database, and a field will automatically come out of the database_ Openid, this_ Can openid be used?

回答:

Eric:

可以的,唯一确定一个账号,非设备

张有釜:

同一个小程序 是的

openid 就是 用户信息和你的应用信息 放一起的哈希

拾忆:

可以,openid是用户在当前小程序下的唯一标识。

-EOF-

AI助手支持GPT4.0