LaneWeChat

PHP微信开发框架,高效开发微信公众号应用。简洁而又轻量

GitHub下载 查看手册

页面展示二维码

Visits: 8400 Date: 2014-11-05 15:34:52 Power By 李轩Lane

    

        场景描述:在网页中展示微信公众号的二维码


        场景举例:太多了吧,就不说了…


        代码:


            <?php

            include 'lanewechat.php';


            header('Content-type: image/jpg');

            $ticket = LaneWeChat\Core\Popularize::createTicket(1, 1800, 1);

            $ticket = $ticket['ticket'];

            $qrcode = LaneWeChat\Core\Popularize::getQrcode($ticket);

            echo $qrcode;


©2014 lanewechat.lanecn.com , All rights reserved. Power By LaneWeChat 微信PHP开发框架.  京ICP备14005030号