通过ticket换取二维码

<?php

header("Content-Type:text/html;charset=utf8");
$ee = urlencode("gQFI8DoAAAAAAAAAASxodHRwOi8vd2VpeGluLnFxLmNvbS9xL1RqallrX1RseXJLek41MU1BeFlYAAIE8aPXVgMEXAIAAA==");//在ticket里打开网页的token
$url = "https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=$ee";
echo $url;


?>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title></title>
<style type="text/css">
body{
margin: 0px;
}

</style>
<script type="text/javascript">
var url3 = '<?php echo $url; ?>';
window.location=url3;//页面跳转
</script>
</head>
<body>

</body>
</html>
?>

posted @ 2016-03-03 11:19  YD帅宰  阅读(1053)  评论(0编辑  收藏  举报