search

Home  >  Q&A  >  body text

javascript - PC side WeChat login authorization js multiple request problem

PC side WeChat login authorization js multiple request problem
The following is the js code:


The following is the page request:

After adding WeChat login authorization js to the page, there will be dozens of such requests before the page can be loaded completely, causing the page to open slowly, and it takes about 30 seconds to load completely.
I would like to ask if anyone has done something similar?

This function: PC scans the QR code, WeChat receives the login reminder, and after WeChat confirms the login, the PC logs in.

怪我咯怪我咯2799 days ago631

reply all(2)I'll reply

  • 黄舟

    黄舟2017-05-16 13:40:48

    Normally speaking, there is no problem. The page needs to check the authorization status through long polling to determine whether to log in

    Check to see if the problem is elsewhere

    reply
    0
  • 黄舟

    黄舟2017-05-16 13:40:48


    Added a function for self-tuning. At first there will only be a few such requests, but after a while there will still be many...

    reply
    0
  • Cancelreply