📔 浅紫日记

输入QQ群号php获取申请加入QQ群的链接
📅 2026-07-30 19:58 📂

header("Content-Type: text/html; charset=utf-8");
if( isset($_GET['guin']) ){
$wx = $_GET['guin']; }else{
$wx = '91213363';}
$wx = $_GET['guin'];
if(empty($wx))
{$wx = '91213363';}
$api = 'https://shang.qq.com/wpa/g_wpa_get?guin='.$wx;//请求地址
$headers = array();
$headers[] = 'Content-Type: application/x-www-form-urlencoded';
$headers[] = 'Accept: */*';
$headers[] = 'Referer: '.$api;
$headers[] = 'User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:67.0) Gecko/20100101 Firefox/67.0';
$ch  = curl_init();
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_URL, $api);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false);
$str = curl_exec($ch);
curl_close($ch);
$arr=json_decode($str,true);
$idkey=$arr['result']['data'][0]['key'];
//echo $idkey;
$idurl='http://shang.qq.com/wpa/qunwpa?idkey='.$idkey;
//header("Location:{$idurl}");
//exit;
echo $idurl;
?>

?>
⬅ 返回列表