We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9483842 commit 35870d4Copy full SHA for 35870d4
danmu_api/configs/globals.js
@@ -11,7 +11,7 @@ export const Globals = {
11
accessedEnvVars: {},
12
13
// 静态常量
14
- VERSION: '1.7.6',
+ VERSION: '1.7.7',
15
MAX_LOGS: 500, // 日志存储,最多保存 500 行
16
MAX_ANIMES: 100,
17
danmu_api/models/dandan-model.js
@@ -34,7 +34,7 @@ export class Anime {
34
throw new TypeError("fromJson 参数必须是对象");
35
}
36
37
- const links = json.links.map(link => Link.fromJson(link));
+ const links = (json.links || []).map(link => Link.fromJson(link));
38
return new Anime({ ...json, links });
39
40
0 commit comments