点歌功能调整API接口
This commit is contained in:
@@ -132,7 +132,7 @@ class MusicPlugin(MessagePluginInterface):
|
||||
self.LOG.error(f"API 请求失败,状态码: {response.status_code}")
|
||||
return {}
|
||||
|
||||
json_data = response.json()
|
||||
json_data = response.json().get("data")
|
||||
return {
|
||||
"song_name": json_data.get('title', ''),
|
||||
"singer_name": json_data.get('singer', ''),
|
||||
|
||||
Reference in New Issue
Block a user