Skip to content

Commit

Permalink
refactor: 在搜索歌词时添加歌手名称
Browse files Browse the repository at this point in the history
  • Loading branch information
Light authored and Light committed Jun 28, 2022
1 parent 47d31f1 commit 59f478a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qqHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public static function getContent($url, $defaultValue) {

public static function search($title, $artist) {
$results = array();
$url = AumQQHandler::$siteSearch . urlencode($title);
$url = AumQQHandler::$siteSearch . urlencode($title . " " . $artist);
$jsonContent = AumQQHandler::getContent($url, '{"data":{"song":{"list":[]}}}');
$json = json_decode($jsonContent, true);

Expand Down

0 comments on commit 59f478a

Please sign in to comment.