search

Home  >  Q&A  >  body text

html5 - Now I have made an H5 for promotion and need to obtain openid

Now H5 has a form submission part
After the form is submitted successfully, a QR code that needs attention will pop up
Can I get the user's openid without paying attention to the QR code? I think it looks like a service number. Is it possible?
Then can a simple H5 also be used?
How should I write it?

世界只因有你世界只因有你2748 days ago1269

reply all(3)I'll reply

  • PHP中文网

    PHP中文网2017-07-06 10:38:53

    If you need to obtain the user's openid, you must require the domain name of the current page to be authorized through WeChat's web page. After the authorization is passed, first get the authorization code, and then continue to obtain the openid through the code.
    Please check the WeChat developer documentation for details.

    reply
    0
  • 欧阳克

    欧阳克2017-07-06 10:38:53

    If you don’t follow us, you can ask for WeChat authorization to get openid

    reply
    0
  • 世界只因有你

    世界只因有你2017-07-06 10:38:53

    Can H5 directly obtain openid? How to achieve it? Are there any examples? If not through the official account, it is just a web page opened in WeChat

    reply
    0
  • Cancelreply