标签:ade 跳转 notice 获取 header tencent qq聊天 location pre
<?php
//iami
//5ime.cn
error_reporting(E_ALL || ~E_NOTICE); //禁止显示PHP错误信息
$qq=$_GET[‘qq‘]; //获取URL参数
$type =$_GET[‘type‘];
if ($type==‘‘)//默认电脑QQ跳转
{
$url=‘tencent://Message/?uin=‘.$qq;
}
else if ($type==‘pe‘)//安卓QQ跳转
{
$url=‘mqqwpa://im/chat?chat_type=wpa&uin=‘.$qq;
}
else if ($type==‘ios‘) //iosQQ跳转
{
$url=‘mqq://im/chat?chat_type=wpa&uin=‘.$qq.‘&version=1&src_type=web‘;
}
header("Location:{$url}");
?>
标签:ade 跳转 notice 获取 header tencent qq聊天 location pre
原文地址:https://www.cnblogs.com/simadongyang/p/12220720.html