Sometimes the need to achieve a two-dimensional code, micro-channel sweep, then the public micro-channel number on the attention, pay attention Alipay sweep number on the treasure of life, such as a promotional brochure in three of the last place a two-dimensional code than to put two-dimensional code Attractive, embodied as follows
Implementation code: (qrcode.php)
<?php
if (strstr($_SERVER['HTTP_USER_AGENT'], 'AlipayClient')){
header('Location: alipays://platformapi/startapp?appId=20000042&publicBizType=LIFE_APP&publicId=2013110600000000');
}elseif(strstr($_SERVER['HTTP_USER_AGENT'], 'MicroMessenger')){
header('Location: https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=MjM5NDAwMTA2MA==&scene=126&bizpsid=0#wechat_redirect');
}else{
echo '<h2 style="width:100%;text-align:center;padding-top:30px;color:#888888">请使用微信或支付宝客户端打开链接</h2>';
}
Finally, the address of the transit made two-dimensional code on it, remember the link above parameters into their own
Alipay Please click on the link link for live client number hoplinks
Micro-channel public number link acquisition method as follows:
Into the need to focus public attention page number pulled the bottom there 全部消息按钮
, click enter, click on the upper right corner of the three points ···
, 复制链接
it