How to get openid after scanning the QR code image generated with PHP?
LRTRL
LRTRL 2017-06-28 16:57:44
0
1
2017

I used the PHP QR code generation library to generate a QR code picture (not generated by the WeChat interface). I want to get the WeChat user's openid after scanning the QR code. How can I use this function? to fulfill?

(I previously thought of using web page authorization to achieve this, but the prerequisite for this is that WeChat users need to follow the official account. Is it possible to directly scan the QR code to jump to the target page without the user following it? , and can you get his openid in the process?)

LRTRL
LRTRL

像蜗牛一样爬行,坚信总有一天我会有属于自己的一片天!

reply all(1)
Ty80
$postStr = file_get_contents("php://input");
$postObj = simplexml_load_string($postStr, 'SimpleXMLElement', LIBXML_NOCDATA);
$fromUsername = $postObj->FromUserName;

$fromUsername is openid

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template