mysql-php WeChat public Number development small problem ask Daniel Expert solution under

Source: Internet
Author: User
Tags openid
Development, the user after the attention. I put the user's information OpenID nickname City Sex and other information exists in my own database in the UserInfo table so the problem is that the user through my public number point into a page I developed myself how to recognize that this user points in and then from the database to display his information in the OpenID is the only one on the web. So what's the connection? The Novice answers the humbly.

Reply content:

Development, the user after the attention. I put the user's information OpenID nickname City Sex and other information exists in my own database in the UserInfo table so the problem is that the user through my public number point into a page I developed myself how to recognize that this user points in and then from the database to display his information in the OpenID is the only one on the web. So what's the connection? The Novice answers the humbly.

Idea: To obtain the user's OpenID to query the matching database of OpenID, if there is a corresponding OpenID to find the user data.
How to get the user's OpenID you should be able to write, since you can write in the database, this acquisition is taken for granted, it is omitted.

Certified public number is authorized to apply for interface to access user information via OpenID,

That's what you're talking about. You can get user OpenID via OAuth.

The second type: send a link to the user with the encrypted OpenID parameter.

Stupid dead you.

Or that you're too lazy.

Http://mp.weixin.qq.com/wiki/2/5baf56ce4947d35003b86a9805634b1e.html

Http://mp.weixin.qq.com/wiki/7/aaa137b55fb2e0456bf8dd9148dd613f.html

Https://res.wx.qq.com/open/js/jweixin-1.0.0.js

This must be certified service number can be, oahth2.0 authorization can Do
Http://www.cnblogs.com/txw1958/p/weixin71-oauth20.html
Just follow this and it's OK, that's what I learned here.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.