发布作者: _北海彡
百度收录: 正在检测是否收录...
最后更新: 2025年 03月 01日 22:24
作品采用: 《 署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0) 》许可协议授权
调用的时网易的免费音乐接口,VIP音乐自动剔除。
入口文件
<?php
// 允许跨域
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Methods: GET, POST, OPTIONS');
header('Access-Control-Allow-Headers: Origin, Content-Type, Accept, Authorization');
$type = @$_GET['type']??'search';
$page = @$_GET['page']??1;
require "WyJx.php";
// 解析歌曲
if ($type == "song") {
$result = \WyJx::getUrl($_GET['id']);
}
// 搜索歌曲
else {
$result = \WyJx::searchSong($_GET['name'], $page);
}
exit($result);
?>
类文件
<?php
/**
* 网易云音乐解析
* 作者:KongHen02
*/
class WyJx
{
/**
* $name 歌曲名称
* return 返回歌曲搜索结果
*/
public static function searchSong($name, $page) {
if(empty($name)) {
return self::result(400, "音乐名name不可为空");
}
// 网易搜索接口
$result = self::httpRequest("http://cloud-music.pl-fe.cn/cloudsearch?keywords=".urlencode($name)."&limit=20&offset=".(($page-1) * 20)."&type=1");
// 处理搜索结果
$result = json_decode($result, true);
$songData = $result['result']['songs']; // 歌曲数据
// 返回数据
if(empty($songData)) {
return self::result(500, "没有歌曲了");
}
// 处理歌曲信息
$songList = [];
$index = 0;
foreach ($songData as $key=> $value) {
// 判断是否为VIP专享歌曲
$vip = $value['privilege']['freeTrialPrivilege']['resConsumable'];
if(!$vip) {
$songList[$index]['type'] = 'wy';
$songList[$index]['id'] = $value['id'];
$songList[$index]['name'] = $value['name'];
$songList[$index]['pic'] = $value['al']['picUrl'];
$singer = "";
foreach ($value['ar'] as $values) {
if($singer!=NULL) {
$singer = $singer . '、' . $values['name'];
}else {
$singer = $values['name'];
}
}
$songList[$index]['singer'] = $singer;
$index++;
}
}
return self::result(200, "搜索成功", $songList);
}
/**
* $id 歌曲id
* return 返回歌曲解析结果
*/
public static function getUrl($id) {
$playUrl = self::getFinalURL("http://music.163.com/song/media/outer/url?id=".$id.".mp3");
$lyric = self::getLyr($id);
if(empty($playUrl)) {
$code = 400;
$msg = "解析失败,请检查歌曲id,或联系管理员";
}else {
$code = 200;
$msg = "解析成功";
$data = ["id"=> $id, "purl"=> $playUrl, "lyric"=> $lyric];
}
return self::result($code, $msg, $data);
}
/**
* 获取链接跳转最终地址
*
*/
private static function getFinalURL($url) {
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_NOBODY, true);
curl_exec($ch);
$redirectUrl = curl_getinfo($ch, CURLINFO_EFFECTIVE_URL);
curl_close($ch);
return $redirectUrl;
}
/**
* 获取歌词
* @$param $id 歌曲id
* return 歌词
*
*/
private static function getLyr($id) {
$result = self::httpRequest("http://music.163.com/api/song/lyric?lv=1&id=$id");
$result = json_decode($result, true);
return $result['lrc']['lyric']??'';
}
/**
* CURL
*
*/
public static function httpRequest($url, $params="", $headers = []) {
// 获取歌曲的数据
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, array_merge($headers, ['Content-Type: application/json']));
curl_setopt($ch, CURLOPT_POSTFIELDS, $params);
$response = curl_exec($ch);
curl_close($ch);
return $response;
}
public static function result($code = 400, $msg, $data = array()) {
header("Content-type: application/json;charset=utf-8");
$code = intval($code);
$result = ["code"=> $code, "msg"=> $msg, "data"=> $data, "author"=> "KongHen02"];
return json_encode($result, 320);
}
}
?>
// 方式一
http://lgz.lgnb.asia/bbx/mp3jiexi/wy.php?type=song&id=歌曲ID
// 方式二
http://music.163.com/song/media/outer/url?id=歌曲ID.mp3
分享一个基本所有音乐都能下载高质量mp3网站
http://tool.liumingye.cn/music/?page=fmPage#/
<?php
// 解析歌曲
function getSongUrl($songId) {
$wyPhpUrl = "http://lgz.lgnb.asia/bbx/mp3jiexi/wy.php?type=song&id=";
$data = array("type" => "song", "id" => $songId);
$params = http_build_query($data);
$fullUrl = $wyPhpUrl . "?" . $params;
// 使用file_get_contents()获取URL的内容
$result = file_get_contents($fullUrl);
// 解析JSON结果
$resultJson = json_decode($result, true);
if ($resultJson["code"] != 200) {
echo "解析失败,错误码:" . $resultJson['code'] . ",错误信息:" . $resultJson['msg'] . PHP_EOL;
exit(1);
}
$purl = $resultJson["data"]["purl"];
return $purl;
}
if ($_SERVER["REQUEST_METHOD"] === "POST") {
$songId = $_POST["songId"];
$purl = getSongUrl($songId);
// 使用header()函数重定向到解析出的链接
header("Location: " . $purl);
exit;
} else {
echo "";
}
?>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>_北海彡无敌战神破解网易云</title>
<style>
@font-face {
font-family: 'font';
src: url('http://lgz.lgnb.asia/fonts/樱奈.woff') format('truetype');
font-weight: normal;
font-style: normal;
}
* {
font-family: 'font', serif;
}
/* 编写基础CSS */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
display: block;
justify-content: center;
align-items: center;
min-height: 100vh;
min-width: 320px;
max-width: 650px;
margin: 0 auto background-image:-moz-linear-gradient(135deg, rgb(153, 238, 255), rgb(185, 184, 255));
background-image: -webkit-linear-gradient(135deg, rgb(153, 238, 255), rgb(185, 184, 255));
background-image: linear-gradient(135deg, rgb(153, 238, 255), rgb(185, 184, 255))
}
.input-box {
margin-top: 15%;
position: relative;
width: 350px;
}
.input-box input {
position: relative;
width: 100%;
padding: 10px 0;
background: transparent;
border: none;
outline: none;
border-bottom: 2px solid #999;
color: #fff;
letter-spacing: 0.05em;
font-size: 1.25em;
transition: 0.5s;
}
.input-box label {
position: absolute;
left: 0;
padding: 10px 0;
pointer-events: none;
color: #666;
user-select: none;
}
.input-box label span {
position: relative;
display: inline-flex;
flex-direction: row;
font-size: 1.25em;
letter-spacing: 0.05em;
transition: 0.25s cubic-bezier(0.5, 1, 0.5, 1.5);
}
.input-box input:focus ~ label span,
.input-box input:valid ~ label span {
color: #0f0;
text-shadow: 0 0 5px #0f0, 0 0 15px #0f0, 0 0 30px #0f0;
transform: translateY(-30px);
}
.input-box input:focus,
.input-box input:valid {
border-bottom: 2px solid #fff;
}
.layui-elem-quote {
margin-top: 30px;
}
.layui-text {
display: flex;
flex-direction: column; /* 使用flex布局,并设置方向为列 */
gap: 10px; /* 设置项目之间的间隔 */
}
.layui-text img {
width: 90%;
height: auto; /* 根据宽度自动调整高度 */
}
/*
.card {
margin-top: 28%;
width: 100%;
height: 80px;
background-color: #ffffff;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
justify-content: center;
align-items: center;
text-align: center;
font-family: Arial, sans-serif;
color: #333;
}
.card:hover {
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
transform: translateY(-5px);
}
*/
</style>
<link href="//unpkg.com/layui@2.9.18/dist/css/layui.css" rel="stylesheet">
</head>
<body>
<script src="//unpkg.com/layui@2.9.18/dist/layui.js"></script>
<div class="input-box">
<form action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>" method="post">
<input type="text" name="songId" required>
<label>方式一: 请输入歌曲ID</label><br><br><br>
<button type="submit" type="button" class="layui-btn layui-btn-fluid">点击破解音乐mp3</button>
</form>
</div>
<blockquote class="layui-elem-quote" style="margin-top: 30px;">
<div class="layui-text" style="display: block;">
<h5>如方式一无法破解 请用方式二<br>如破解失败,会显示网易云音乐下载页面</h5>
</div>
</blockquote>
<script type="text/javascript">
function playSong() {
var songId2 = document.getElementById('songId2').value;
if (songId2) {
window.location.href = 'http://music.163.com/song/media/outer/url?id=' + songId2 + '.mp3';
} else {
alert('请输入有效的歌曲ID!');
}
}
</script>
<div class="input-box">
<form onsubmit="event.preventDefault();playSong();">
<input type="text" id="songId2" name="songId2" required>
<label>方式二: 请输入歌曲ID</label><br><br><br>
<button type="submit" class="layui-btn layui-btn-fluid">点击破解音乐mp3</button>
</form>
</div>
<br><br><br>
<blockquote class="layui-elem-quote" style="margin-top: 30px;">
<div class="layui-text" style="display: block;">
<h3>食用方法:</h3>
1.在网易云音乐中搜所你想破解的歌曲.<br>
2.复制链接,找到链接最后的几位数字,这就是歌曲ID.<br>
<img src="shili.png" alt="获取歌曲ID示例图片"><br>
3.最后将歌曲ID粘贴在本页面的输入框,点击按钮即可破解.<br>
4.破解出的歌曲可以下载为mp3格式.
</div>
</blockquote>
<br><br><br><br><br>
<h6 style="color:#818284;text-align:center;font-size:12px;margin:70px 10px 30px 10px;line-height:20px;">Copyright © 2022 - 2024 天津海云互联网络科技有限公司 .All Rights Reserved. ©所有解释归属权归LGZ科技集团(天津)有限公司所有</h6>
</div> <!--我是分界线-->
<script>
let label = document.querySelector('label');
label.innerHTML = label.innerText.split('').map((letters, i) => {
return `<span style="transition-delay: ${i * 30}ms; filter: hue-rotate(${i * 10}deg)">${letters}</span>`;
}).join('');
</script>
<?php
// 获取客户端IP地址
$ip_address = $_SERVER['REMOTE_ADDR'];
// 获取当前时间
$visit_time = date('Y-m-d H:i:s');
// 获取用户代理信息
$user_agent = $_SERVER['HTTP_USER_AGENT'];
// 判断设备类型
$device_type = '未知';
if (preg_match('/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i', $user_agent) || preg_match('/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i', substr($user_agent, 0, 4))) {
$device_type = '手机';
} elseif (preg_match('/tablet|ipad|playbook|silk/i', $user_agent)) {
$device_type = '平板';
} else {
$device_type = '电脑';
}
// 判断浏览器类型
$browser = '未知';
if (strpos($user_agent, 'Chrome') !== false) {
$browser = '谷歌浏览器';
} elseif (strpos($user_agent, 'Edge') !== false) {
$browser = 'Edge浏览器';
} elseif (strpos($user_agent, 'VivoBrowser') !== false) {
$browser = 'VIVO浏览器';
} elseif (strpos($user_agent, 'MiuiBrowser') !== false) {
$browser = '小米浏览器';
} elseif (strpos($user_agent, 'Safari') !== false && strpos($user_agent, 'Chrome') === false) {
$browser = 'Safari浏览器';
} elseif (strpos($user_agent, 'Firefox') !== false) {
$browser = 'Firefox浏览器';
} elseif (strpos($user_agent, 'Opera') !== false) {
$browser = 'Opera浏览器';
}
// 获取请求路径
$request_path = $_SERVER['REQUEST_URI'];
// 将数据写入文件
$log_entry = "IP: {$ip_address}, 时间: {$visit_time}, 设备: {$device_type}, 平台: {$_SERVER['HTTP_USER_AGENT']}, 浏览器: {$browser}, 请求路径: {$request_path}\n";
file_put_contents('ip.txt', $log_entry, FILE_APPEND);
?>
</body>
</html>
厉害厉害666
音乐解析演示可以了
网易云免费音乐解析 - LGZ - 海云博客
avthjyovct
[url=http://www.g9318uso168ouzc3a2kn305s93hu8ac2s.org/]uvthjyovct[/url]
vthjyovct http://www.g9318uso168ouzc3a2kn305s93hu8ac2s.org/
网易云免费音乐解析 - LGZ - 海云博客
anwbbbwdftx
nwbbbwdftx http://www.g7n94c7o7f6un2w7t28k7h4xm6j3fw89s.org/
[url=http://www.g7n94c7o7f6un2w7t28k7h4xm6j3fw89s.org/]unwbbbwdftx[/url]
网易云免费音乐解析 - LGZ - 海云博客
[url=http://www.g12hg83uuq44k3h6579mc815jx67myfas.org/]uwtqnxzowvq[/url]
awtqnxzowvq
wtqnxzowvq http://www.g12hg83uuq44k3h6579mc815jx67myfas.org/
网易云免费音乐解析 - LGZ - 海云博客
imyscgcsrl http://www.g762c9r16e1jdxc4i33d227li14kngr6s.org/
aimyscgcsrl
[url=http://www.g762c9r16e1jdxc4i33d227li14kngr6s.org/]uimyscgcsrl[/url]
网易云免费音乐解析 - LGZ - 海云博客
aigsbcsenl
[url=http://www.gl0s5aq43ui887m48ae74a71szce0i63s.org/]uigsbcsenl[/url]
igsbcsenl http://www.gl0s5aq43ui887m48ae74a71szce0i63s.org/
网易云免费音乐解析 - LGZ - 海云博客
asrgpjkmoin
srgpjkmoin http://www.gu567qr1r68cz5tt7rg92j1xn4y4384is.org/
[url=http://www.gu567qr1r68cz5tt7rg92j1xn4y4384is.org/]usrgpjkmoin[/url]
之前是可以使用的,如果使用不了应该是接口坏了
爱上对方呼呼啦啦的感觉
去啊物色大润发铁观音户籍扣破了
文章结构紧凑,层次分明,逻辑严密,让人一读即懂。
作者以非凡的视角解读平凡,让文字焕发出别样的光彩。
批判锋芒犀利,直指问题症结所在。