Skip to content

Commit 35870d4

Browse files
authored
修复输入播放链接获取弹幕报错 (huangxd-#94)
* 修复输入播放链接获取弹幕报错 * 1.7.7
1 parent 9483842 commit 35870d4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

danmu_api/configs/globals.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const Globals = {
1111
accessedEnvVars: {},
1212

1313
// 静态常量
14-
VERSION: '1.7.6',
14+
VERSION: '1.7.7',
1515
MAX_LOGS: 500, // 日志存储,最多保存 500 行
1616
MAX_ANIMES: 100,
1717

danmu_api/models/dandan-model.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export class Anime {
3434
throw new TypeError("fromJson 参数必须是对象");
3535
}
3636

37-
const links = json.links.map(link => Link.fromJson(link));
37+
const links = (json.links || []).map(link => Link.fromJson(link));
3838
return new Anime({ ...json, links });
3939
}
4040

0 commit comments

Comments
 (0)