javascript - After successfully generating a QR code using qrcode, a blank page opens when scanning the QR code with a mobile phone. How to implement the transfer in the picture below? Prompts the user to open the browser download in the upper right corner
PHP中文网
2017-05-19 10:31:34
What is the reason for the blank page? Blocked by WeChat? Can the url of qrcode be entered?
Then make a judgment directly on the jumped page. If it is opened on WeChat, a picture will be displayed for customers to open with a browser.
If not, just follow the normal process.
Just determine the UA, such as https://tx.163.com/, click Android to download
It will jump to https://adl.netease.com/d/g/t... Such a webpage
Just look at the source code of this url
view-source:https://adl.netease.com/d/g/tx/c/ptfab?type=android
It can be achieved. Now there is a new question, that is, if I have many mobile games, can the page that determines ua be made dynamic? Or should each game have a judgment page like this?