直接上代码 通过hash+某个字符串的md5值

<?php
/*音乐部分*/
/*歌曲hash值*/
$music_hash="91b5a3ba1420b1156afd7918c1af27e1";

/*可获取所有免费的酷狗音乐(含无损)*/
echo "http://trackercdn.kugou.com/i/v2/?cmd=25&key=".md5(strtolower($music_hash)."kgcloudv2")."&hash={$music_hash}&pid=1&behavior=download<br/>";

/*可获取所有免费的酷狗音乐(含无损)及收费音乐的128Kbps音质(除 需购买专辑的收费音乐)*/
$mid="0";//随意 必填
$userid="0";//随意 必填
$appid="1005";//必填1005
echo "http://trackercdn.kugou.com/i/v2/?cmd=26&key=".md5(strtolower($music_hash)."kgcloudv2".$appid.$mid.$userid)."&hash={$music_hash}&pid=1&behavior=play&mid={$mid}&appid={$appid}&userid={$userid}&version=0&vipType=0&token=0<br>";

/*MV部分*/
/*MV HASH值*/
$mv_hash="1855DD770F35100F4BEF9C4634B42D55";
echo     "http://trackermv.kugou.com/interface/index/cmd=4&hash=".strtoupper($mv_hash)."&key=".md5(strtoupper($mv_hash)."kgcloud")."&ext=mp4<br/>";echo "http://trackermv.kugou.com/interface/index/cmd=100&hash=".strtoupper($mv_hash)."&key=".md5(strtoupper($mv_hash)."kugoumvcloud")."&pid=6&ext=mp4&ismp3=0<br/>";
echo "http://trackermv.kugou.com/interface/index/cmd=103&hash=".strtoupper($mv_hash)."&key=".md5(strtoupper($mv_hash)."kugoumvcloud")."&pid=6&ext=mp4&ismp3=0<br/>";
echo "http://trackermv.kugou.com/interface/index/cmd=104&hash=".strtoupper($mv_hash)."&ext=mp4<br/>";
?>
方法:http://trackermv.kugou.com/interface/index/cmd=100&hash=【MVhash】&key=【取hash(MVhash+“kgcloud”)】&pid=6&ext=mp4&ismp3=0

实例1:http://trackermv.kugou.com/interface/index/cmd=100&hash=DC9392B837F51BF0627332BFE78CE976&key=8328eb6318cd4a40797c7967b8b1530c&pid=6&ext=mp4&ismp3=0

实例2:http://trackermv.kugou.com/interface/index/cmd=100&hash=A7E59E4A93543B3FCCE2F11D92659BBF&key=553de35cf8bc31c85d384847d545034a&pid=6&ext=mp4&ismp3=0


评论 (0)

请登录

嘿,我来帮您