13
13
14
14
class Meting
15
15
{
16
- const VERSION = '1.5.4 ' ;
16
+ const VERSION = '1.5.5 ' ;
17
17
18
18
public $ raw ;
19
19
public $ data ;
@@ -230,15 +230,15 @@ public function search($keyword, $option = null)
230
230
case 'baidu ' :
231
231
$ api = array (
232
232
'method ' => 'GET ' ,
233
- 'url ' => 'https ://gss2.baidu .com/6Ls1aze90MgYm2Gp8IqW0jdnxx1xbK /v1/restserver/ting ' ,
233
+ 'url ' => 'http ://musicapi.taihe .com/v1/restserver/ting ' ,
234
234
'body ' => array (
235
235
'from ' => 'qianqianmini ' ,
236
236
'method ' => 'baidu.ting.search.merge ' ,
237
237
'isNew ' => 1 ,
238
238
'platform ' => 'darwin ' ,
239
239
'page_no ' => isset ($ option ['page ' ]) ? $ option ['page ' ] : 1 ,
240
240
'query ' => $ keyword ,
241
- 'version ' => '11.0.2 ' ,
241
+ 'version ' => '11.2.1 ' ,
242
242
'page_size ' => isset ($ option ['limit ' ]) ? $ option ['limit ' ] : 30 ,
243
243
),
244
244
'format ' => 'result.song_info.song_list ' ,
@@ -304,7 +304,7 @@ public function song($id)
304
304
case 'baidu ' :
305
305
$ api = array (
306
306
'method ' => 'GET ' ,
307
- 'url ' => 'https ://gss2.baidu .com/6Ls1aze90MgYm2Gp8IqW0jdnxx1xbK /v1/restserver/ting ' ,
307
+ 'url ' => 'http ://musicapi.taihe .com/v1/restserver/ting ' ,
308
308
'body ' => array (
309
309
'from ' => 'qianqianmini ' ,
310
310
'method ' => 'baidu.ting.song.getInfos ' ,
@@ -386,13 +386,13 @@ public function album($id)
386
386
case 'baidu ' :
387
387
$ api = array (
388
388
'method ' => 'GET ' ,
389
- 'url ' => 'https ://gss2.baidu .com/6Ls1aze90MgYm2Gp8IqW0jdnxx1xbK /v1/restserver/ting ' ,
389
+ 'url ' => 'http ://musicapi.taihe .com/v1/restserver/ting ' ,
390
390
'body ' => array (
391
391
'from ' => 'qianqianmini ' ,
392
392
'method ' => 'baidu.ting.album.getAlbumInfo ' ,
393
393
'album_id ' => $ id ,
394
394
'platform ' => 'darwin ' ,
395
- 'version ' => '11.0.2 ' ,
395
+ 'version ' => '11.2.1 ' ,
396
396
),
397
397
'format ' => 'songlist ' ,
398
398
);
@@ -471,7 +471,7 @@ public function artist($id, $limit = 50)
471
471
case 'baidu ' :
472
472
$ api = array (
473
473
'method ' => 'GET ' ,
474
- 'url ' => 'https ://gss2.baidu .com/6Ls1aze90MgYm2Gp8IqW0jdnxx1xbK /v1/restserver/ting ' ,
474
+ 'url ' => 'http ://musicapi.taihe .com/v1/restserver/ting ' ,
475
475
'body ' => array (
476
476
'from ' => 'qianqianmini ' ,
477
477
'method ' => 'baidu.ting.artist.getSongList ' ,
@@ -480,7 +480,7 @@ public function artist($id, $limit = 50)
480
480
'platform ' => 'darwin ' ,
481
481
'offset ' => 0 ,
482
482
'tinguid ' => 0 ,
483
- 'version ' => '11.0.2 ' ,
483
+ 'version ' => '11.2.1 ' ,
484
484
),
485
485
'format ' => 'songlist ' ,
486
486
);
@@ -557,13 +557,13 @@ public function playlist($id)
557
557
case 'baidu ' :
558
558
$ api = array (
559
559
'method ' => 'GET ' ,
560
- 'url ' => 'https ://gss2.baidu .com/6Ls1aze90MgYm2Gp8IqW0jdnxx1xbK /v1/restserver/ting ' ,
560
+ 'url ' => 'http ://musicapi.taihe .com/v1/restserver/ting ' ,
561
561
'body ' => array (
562
562
'from ' => 'qianqianmini ' ,
563
563
'method ' => 'baidu.ting.diy.gedanInfo ' ,
564
564
'listid ' => $ id ,
565
565
'platform ' => 'darwin ' ,
566
- 'version ' => '11.0.2 ' ,
566
+ 'version ' => '11.2.1 ' ,
567
567
),
568
568
'format ' => 'content ' ,
569
569
);
@@ -642,7 +642,7 @@ public function url($id, $br = 320)
642
642
case 'baidu ' :
643
643
$ api = array (
644
644
'method ' => 'GET ' ,
645
- 'url ' => 'https ://gss2.baidu .com/6Ls1aze90MgYm2Gp8IqW0jdnxx1xbK /v1/restserver/ting ' ,
645
+ 'url ' => 'http ://musicapi.taihe .com/v1/restserver/ting ' ,
646
646
'body ' => array (
647
647
'from ' => 'qianqianmini ' ,
648
648
'method ' => 'baidu.ting.song.getInfos ' ,
@@ -721,7 +721,7 @@ public function lyric($id)
721
721
case 'baidu ' :
722
722
$ api = array (
723
723
'method ' => 'GET ' ,
724
- 'url ' => 'https ://gss2.baidu .com/6Ls1aze90MgYm2Gp8IqW0jdnxx1xbK /v1/restserver/ting ' ,
724
+ 'url ' => 'http ://musicapi.taihe .com/v1/restserver/ting ' ,
725
725
'body ' => array (
726
726
'from ' => 'qianqianmini ' ,
727
727
'method ' => 'baidu.ting.song.lry ' ,
@@ -814,7 +814,7 @@ private function curlset()
814
814
case 'baidu ' :
815
815
return array (
816
816
'Cookie ' => 'BAIDUID= ' .$ this ->getRandomHex (32 ).':FG=1 ' ,
817
- 'User-Agent ' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5 ) AppleWebKit/537.36 (KHTML, like Gecko) baidu-music/1.1.5 Chrome/61 .0.3163.100 Electron/2 .0.0 Safari/537.36 ' ,
817
+ 'User-Agent ' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6 ) AppleWebKit/537.36 (KHTML, like Gecko) baidu-music/1.2.1 Chrome/66 .0.3359.181 Electron/3 .0.5 Safari/537.36 ' ,
818
818
'Accept ' => '*/* ' ,
819
819
'Content-type ' => 'application/json;charset=UTF-8 ' ,
820
820
'Accept-Language ' => 'zh-CN ' ,
@@ -1335,4 +1335,4 @@ private function format_baidu($data)
1335
1335
1336
1336
return $ result ;
1337
1337
}
1338
- }
1338
+ }
0 commit comments