mirror of
https://github.com/MeoProject/lx-music-api-server.git
synced 2025-07-05 11:39:02 +08:00
chore: 优化返回类型
This commit is contained in:
parent
3161b4f712
commit
e999ebdf99
@ -71,7 +71,7 @@ async def url(source, songId, quality):
|
|||||||
},
|
},
|
||||||
'expire': {
|
'expire': {
|
||||||
# 在更新缓存的时候把有效期的75%作为链接可用时长,现在加回来
|
# 在更新缓存的时候把有效期的75%作为链接可用时长,现在加回来
|
||||||
'time': (cache['time'] + (sourceExpirationTime[source]['time'] * 0.25)) if cache['expire'] else None,
|
'time': int(cache['time'] + (sourceExpirationTime[source]['time'] * 0.25)) if cache['expire'] else None,
|
||||||
'canExpire': cache['expire'],
|
'canExpire': cache['expire'],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user