Skip to content

Commit b509a3d

Browse files
committed
try fix
1 parent e156ada commit b509a3d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/controllers/netease.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ controllers.detail = async (ctx, next) => {
609609
return
610610
} else {
611611
try {
612-
ret = await sdk.getSongInfo(ctx.params.id)
612+
ret = await nm.song(ctx.params.id)
613613
} catch (e) {
614614
ctx.status = 500
615615
ctx.body = {
@@ -718,7 +718,7 @@ const handleSummary = async (id, url, ctx, check = false) => {
718718
if (Cache && Cache.code && Cache.code === 200) { // 尝试在服务端矫正异常的缓存结果
719719
detail = Cache
720720
} else {
721-
detail = await sdk.getSongInfo(id)
721+
detail = await nm.song(id.toString())
722722
if (detail.code === 200) {
723723
cache.set('nm:detail:' + id, detail, cacheTime)
724724
}

0 commit comments

Comments
 (0)