WeChat scan QR code, the user automatically pay attention to the public, the front page can also receive notifications, how to achieve it?

Source: Internet
Author: User
Tags openid
For example, this site
Corn Net

Reply content:

For example, this site
Corn Net

    /** * @descrpition Attention * @param $request * @return Array */public static function Eventsubscribe (&A        MP; $request) {$content = ' You are welcome to follow us, will serve you wholeheartedly ';    return Responsepassive::text ($request [' Fromusername '], $request [' Tousername '], $content); }/** * @descrpition cancel attention * @param $request * @return Array */public static function Eventunsubscri Be (& $request) {$content = ' Why did you ignore me?        ';    return Responsepassive::text ($request [' Fromusername '], $request [' Tousername '], $content); }/** * @descrpition scan QR code attention (when not in focus) * @param $request * @return Array */public static function event        Qrscenesubscribe (& $request) {$content = ' welcome your attention to us, will serve you wholeheartedly ';    return Responsepassive::text ($request [' Fromusername '], $request [' Tousername '], $content); }/** * @descrpition scan QR code (when you are concerned) * @param $request * @return Array */public static function EVENTSC An (& $request) {$content = ' you haveAfter the attention of OH ~ ';    return Responsepassive::text ($request [' Fromusername '], $request [' Tousername '], $content); }

Background display

 $show=('终于等到您!');              $name=$_SESSION['wxapp']['nickname'];//昵称              $tousername = $_SESSION['wxapp']['openid'];//openid             echo $show.$name.$tousername;

I realized it with Lanewechat.

HTTPS://SEGMENTFAULT.COM/Q/10 ...

There is no automatic attention, just jump to the public number details and then there is a focus button.
And you can't log in.

Look at the wrong question. Your needs are on the line.
HTTPS://OPEN.WEIXIN.QQ.COM/CG ...

I can't read a few answers upstairs! I Baidu down, for the time being only this result.
http://ms.csdn.net/geek/51618
As a normal case, after sweeping out is the confirmation button interface, not the focus of the page.
Maybe you can set it inside the background. For the first time I knew there was such a powerful feature.

Practice is science, sweep this * * Network is also to user manual attention.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.