Skip to content

Commit

Permalink
chore: 更改返回格式
Browse files Browse the repository at this point in the history
  • Loading branch information
helloplhm-qwq committed Dec 15, 2023
1 parent a8cfd47 commit f60810c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ async def handleApiRequest(command, source, songId, quality):
return {
'code': 0,
'msg': 'success',
'data': {
'url': cache['url'],
'data': cache['url'],
'extra': {
'cache': True,
'quality': {
'target': quality,
Expand Down Expand Up @@ -91,8 +91,8 @@ async def handleApiRequest(command, source, songId, quality):
return {
'code': 0,
'msg': 'success',
'data': {
'url': result['url'],
'data': result['url'],
'extra': {
'cache': False,
'quality': {
'target': quality,
Expand Down

0 comments on commit f60810c

Please sign in to comment.