@@ -38,18 +38,19 @@ public function song_url($site, $music_id)
38
38
// exit;
39
39
// }
40
40
41
- if ($ site === "netease " ) {
42
- $ url = str_replace ('http://m9. ' , 'http://m7. ' , $ url );
43
- $ url = str_replace ('http://m7c. ' , 'http://m7. ' , $ url );
44
- $ url = str_replace ('http://m8c. ' , 'http://m7. ' , $ url );
45
- $ url = str_replace ('http://m8. ' , 'http://m7. ' , $ url );
46
- $ url = str_replace ('http://m7. ' , 'https://m7. ' , $ url );
47
- $ url = str_replace ('http://m10 ' , 'https://m10 ' , $ url );
41
+ if ($ site == 'netease ' ) {
42
+ $ url = str_replace ('://m7c. ' , '://m7. ' , $ url );
43
+ $ url = str_replace ('://m8c. ' , '://m8. ' , $ url );
44
+ $ url = str_replace ('http:// ' , 'https:// ' , $ url );
45
+ }
46
+ if ($ site == 'tencent ' ) {
47
+ $ url = str_replace ('http:// ' , 'https:// ' , $ url );
48
+ $ url = str_replace ('ws.stream.qqmusic.qq.com ' , 'dl.stream.qqmusic.qq.com ' , $ url );
48
49
}
49
- if ($ site === " xiami " || $ site === ' tencent ' ) {
50
+ if ($ site == ' xiami ' ) {
50
51
$ url = str_replace ('http:// ' , 'https:// ' , $ url );
51
52
}
52
- if ($ site === 'baidu ' ) {
53
+ if ($ site == 'baidu ' ) {
53
54
$ url = str_replace ('http://zhangmenshiting.qianqian.com ' , 'https://gss3.baidu.com/y0s1hSulBw92lNKgpU_Z2jR7b2w6buu ' , $ url );
54
55
}
55
56
0 commit comments