Skip to content

Commit

Permalink
add help
Browse files Browse the repository at this point in the history
  • Loading branch information
ZainCheung authored Jun 28, 2020
1 parent 0794ee3 commit 9de68e3
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ protected function curl($url,$data=null,$cookie=false){
}

// main function
public function index(){
$string = file_get_contents("help.html");
// echo $string;
return $string;
}
// login by phone
public function login($cell,$pwd){
$url="https://music.163.com/weapi/login/cellphone";
Expand Down Expand Up @@ -217,11 +222,11 @@ public function playlist($playlist_id){
$api->follow();
//test();
if($_REQUEST["do"]=="login"){
echo $api->login($_REQUEST["uin"],$_REQUEST["pwd"]);}
elseif($_REQUEST["do"]=="email"){echo $api->loginByEmail($_REQUEST["uin"],$_REQUEST["pwd"]);}
elseif($_REQUEST["do"]=="sign"){echo $api->sign();}
elseif($_REQUEST["do"]=="daka"){echo $api->daka_new();}
elseif($_REQUEST["do"]=="check"){echo $api->follow();}
elseif($_REQUEST["do"]=="detail"){echo $api->detail($_REQUEST["uid"]);}

?>
echo $api->login($_REQUEST["uin"],$_REQUEST["pwd"]);}
elseif($_REQUEST["do"]=="email"){echo $api->loginByEmail($_REQUEST["uin"],$_REQUEST["pwd"]);}
elseif($_REQUEST["do"]=="sign"){echo $api->sign();}
elseif($_REQUEST["do"]=="daka"){echo $api->daka_new();}
elseif($_REQUEST["do"]=="check"){echo $api->follow();}
elseif($_REQUEST["do"]=="detail"){echo $api->detail($_REQUEST["uid"]);}
else{echo $api->index();}
?>

0 comments on commit 9de68e3

Please sign in to comment.