JavaScript-must pay attention to WeChat public platform to vote Segmentfault

Source: Internet
Author: User
Tags openid
After the page user polls

PHP background How to determine whether the user is concerned about the public account?

Must pay attention to the public platform before voting

Reply content:

After the page user polls

PHP background How to determine whether the user is concerned about the public account?

Must pay attention to the public platform before voting

Here's the document.
The subscribe parameters inside can be judged
The full data is as follows:

{    "subscribe": 1,     "openid": "o6_bmjrPTlm6_2sgVt7hMZOPfL2M",     "nickname": "Band",     "sex": 1,     "language": "zh_CN",     "city": "广州",     "province": "广东",     "country": "中国",     "headimgurl":    "http://wx.qlogo.cn/mmopen/g3MonUZtNHkdmzicIlibx6iaFqAc56vxLSUfpb6n5WKSYVY0ChQKkiaJSgQ1dZuTOgvLLrhJbERQQ4eMsv84eavHiaiceqxibJxCfHe/0",    "subscribe_time": 1382694957,   "unionid": " o6_bmasdasdsad6_2sgVt7hMZOPfL"   "remark": "",   "groupid": 0}

Not related to developer mode.
Click to view article

Try the landing?

This problem I have encountered in the previous version, then did not have access to user information interface, I have to deal with:
The entry for the return of the text, in the link with the parameters OpenID, background processing to determine the OpenID after the save session and then redirect to a URL without get parameters, processing time to determine whether the session exists, there is a concern. This is my previous method, hope can help you.

Determine if the user's OpenID is in its own database.

This must be obtained to the user's OpenID, using this method to be authorized to save OpenID in their own database

  • 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.