加群链接需要idkey的,该源码自动解析idkey,实现免idkey加群。例如:你的域名/qqun.php?qun=99968722代码如下:<?php
/*免IDKEY加群
*/
error_reporting(0);
function get_curl($url, $post=0, $referer=0, $cookie=0, $header=0, $ua=0, $nobaody=0)
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
if ($post) {
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
}
if ($header) {
curl_setopt($ch, CURLOPT_HEADER, true);
}
if ($cookie) {
curl_setopt($ch, CURLOPT_COOKIE, $cookie);
}
if ($referer) {
curl_setopt($ch, CURLOPT_REFERER, $referer);
}
if ($ua) {
curl_setopt($ch, CURLOPT_USERAGENT, $ua);
}
else {
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Linux; U; Android 4.0.4; es-mx; HTC_One_X Build/IMM76D) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0");
}
if ($nobaody) {
curl_setopt($ch, CURLOPT_NOBODY, 1);
}
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$ret = curl_exec($ch);
curl_close($ch);
return $ret;
}
$qun=isset($_GET['qun'])?$_GET['qun']:'99968722';
$data=get_curl('http://shang.qq.com/wpa/g_wpa_get?guin='.$qun.'&t='.time(),0,'http://qun.qq.com/join.html');
$arr=json_decode($data,true);
$idkey=$arr['result']['data'][0]['key'];
$url='http://shang.qq.com/wpa/qunwpa?idkey='.$idkey;
header("Location:{$url}");
exit;
?>
评论
172条评论我胖虎怕过谁 Lv.1
Chrome 86.0.4240.198
Windows 7 x64 Edition 回复
66666撒旦
河南省开封市 联通
2837297114 Lv.1
Android Webkit 4.0
Android 12 回复
6667
河南省郑州市 联通
Lv.1 回复
江苏省 移动
爱是冰冷的剑 Lv.1 回复
内蒙古赤峰市 电信
石家庄市 Lv.1
Chrome 69.0.3947.100
Windows 7 x64 Edition 回复
中国 移动
nicemoe Lv.1
Chrome 101.0.0.0
Windows 回复
广东省深圳市 电信
lining1585 Lv.1
Chrome 86.0.4240.198
Windows 回复
23231123
加拿大
蜜桃主 Lv.1
Sogou Explorer
Windows 回复
感谢楼主
,好人一生平安
山东省 联通
Sunny Lv.1
Chrome 80.0.3987.163
Windows 回复
看看
辽宁省 移动
太阳的背面 Lv.1
Chrome 101.0.4951.64
Windows 回复
来啦二1111
上海市徐汇区 联通漕河泾数据中心