mirror of
https://github.com/metowolf/Meting.git
synced 2026-09-03 07:27:07 +08:00
feat: Support QQ Music VIP url (#96)
This commit is contained in:
@@ -1107,6 +1107,7 @@ class Meting
|
||||
$guid = mt_rand() % 10000000000;
|
||||
|
||||
$type = array(
|
||||
array('size_flac', 999, 'F000', 'flac'),
|
||||
array('size_320mp3', 320, 'M800', 'mp3'),
|
||||
array('size_192aac', 192, 'C600', 'm4a'),
|
||||
array('size_128mp3', 128, 'M500', 'mp3'),
|
||||
@@ -1115,6 +1116,12 @@ class Meting
|
||||
array('size_24aac', 24, 'C100', 'm4a'),
|
||||
);
|
||||
|
||||
$uin = '0';
|
||||
preg_match('/uin=(\d+)/', $this->header['Cookie'], $uin_match);
|
||||
if (count($uin_match)) {
|
||||
$uin = $uin_match[1];
|
||||
}
|
||||
|
||||
$payload = array(
|
||||
'req_0' => array(
|
||||
'module' => 'vkey.GetVkeyServer',
|
||||
@@ -1124,7 +1131,7 @@ class Meting
|
||||
'songmid' => array(),
|
||||
'filename' => array(),
|
||||
'songtype' => array(),
|
||||
'uin' => '0',
|
||||
'uin' => $uin,
|
||||
'loginflag' => 1,
|
||||
'platform' => '20',
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user