Those pits of QQ login

In the past few days, the function of qq login has been implemented on the project. When the function is completed, it is found that the openid returned by Tencent after logging in with the same qq number is different. . . . (Oh my god~) Then I checked the documents and consulted customer service to find out that there is a fixed routine for registration application (I have to say, everything is about routines now~), because Tencent's QQ login application is divided into two platforms , one is QQ Internet, the other is Tencent developer platform, our website QQ login is applied on QQ Internet, and the mobile terminal is applied on Tencent Open Platform, and then it is a tragedy! It appears that the same QQ user logs in at different terminals and creates different account information (because the returned openid is different). The solution to this problem is to send an application email to Tencent to identify the mobile terminal and PC terminal. After the application is approved You will get a unionid, this field is the unique identifier of each user! Instead of using openid for identification, the specific audit request is shown in the figure

The link address is: http://wiki.connect.qq.com/%E5%BC%80%E5%8F%91%E8%80%85%E5%8F%8D%E9%A6%88

In fact, it is not necessary to get through. When we create an application, we can unify the appid of the application created by the three terminals (ios android pc) and continue to use openid as the user identifier! ! As shown

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324833052&siteId=291194637