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