点歌功能调整API接口

This commit is contained in:
liuwei
2025-06-03 10:44:47 +08:00
parent ca250a11cc
commit 00eccd4f2e

View File

@@ -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', ''),