Skip to content

Commit

Permalink
feat: Console
Browse files Browse the repository at this point in the history
  • Loading branch information
VirgilClyne committed Dec 23, 2024
1 parent 62166a9 commit 17a7081
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/request.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ Console.info(`FORMAT: ${FORMAT}`);
}
case false:
default:
Console.info("关闭多账号支持");
break;
}
break;
Expand Down
1 change: 1 addition & 0 deletions src/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ Console.info(`FORMAT: ${FORMAT}`);
}
case false:
default:
Console.info("关闭多账号支持");
break;
}
break;
Expand Down
11 changes: 8 additions & 3 deletions src/response.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ Console.info(`FORMAT: ${FORMAT}`);
}
case false:
default:
Console.info("关闭多账号支持");
break;
}
break;
Expand Down Expand Up @@ -153,6 +154,7 @@ Console.info(`FORMAT: ${FORMAT}`);
Console.debug(`/${PATHs[0]}/accounts/${PATHs[2]}/apps`);
switch (Settings.Universal) {
case true:
default:
Console.info("启用通用应用支持");
if (body.error === null) {
// 数据无错误
Expand All @@ -171,7 +173,7 @@ Console.info(`FORMAT: ${FORMAT}`);
}
break;
case false:
default:
Console.info("启用通用应用支持");
break;
}
break;
Expand All @@ -186,6 +188,7 @@ Console.info(`FORMAT: ${FORMAT}`);
Console.debug(`/${PATHs[0]}/accounts/${PATHs[2]}/apps/${PATHs[4]}/builds/${PATHs[6]}`);
switch (Settings.Universal) {
case true:
default:
Console.info("启用通用应用支持");
if (body.error === null) {
// 数据无错误
Expand All @@ -197,7 +200,7 @@ Console.info(`FORMAT: ${FORMAT}`);
}
break;
case false:
default:
Console.info("关闭通用应用支持");
break;
}
break;
Expand Down Expand Up @@ -230,6 +233,7 @@ Console.info(`FORMAT: ${FORMAT}`);
Console.debug(`/${PATHs[0]}/accounts/${PATHs[2]}/apps/${PATHs[4]}/platforms/${PATHs[6]}/trains/${PATHs[8]}/builds`);
switch (Settings.Universal) {
case true:
default:
Console.info("启用通用应用支持");
if (body.error === null) {
// 数据无错误
Expand All @@ -239,7 +243,7 @@ Console.info(`FORMAT: ${FORMAT}`);
}
break;
case false:
default:
Console.info("关闭通用应用支持");
break;
}
break;
Expand Down Expand Up @@ -289,6 +293,7 @@ Console.info(`FORMAT: ${FORMAT}`);
break;
case false:
default:
Console.info("不显示安装选项");
break;
}
break;
Expand Down
9 changes: 6 additions & 3 deletions src/response.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ Console.info(`FORMAT: ${FORMAT}`);
case undefined:
switch (Settings.Universal) {
case true:
default:
Console.info("启用通用应用支持");
if (body.error === null) {
// 数据无错误
Expand All @@ -149,7 +150,7 @@ Console.info(`FORMAT: ${FORMAT}`);
}
break;
case false:
default:
Console.info("启用通用应用支持");
break;
}
break;
Expand All @@ -162,6 +163,7 @@ Console.info(`FORMAT: ${FORMAT}`);
case undefined:
switch (Settings.Universal) {
case true:
default:
Console.info("启用通用应用支持");
if (body.error === null) {
// 数据无错误
Expand All @@ -173,7 +175,7 @@ Console.info(`FORMAT: ${FORMAT}`);
}
break;
case false:
default:
Console.info("关闭通用应用支持");
break;
}
break;
Expand Down Expand Up @@ -201,6 +203,7 @@ Console.info(`FORMAT: ${FORMAT}`);
case undefined:
switch (Settings.Universal) {
case true:
default:
Console.info("启用通用应用支持");
if (body.error === null) {
// 数据无错误
Expand All @@ -210,7 +213,7 @@ Console.info(`FORMAT: ${FORMAT}`);
}
break;
case false:
default:
Console.info("关闭通用应用支持");
break;
}
break;
Expand Down

0 comments on commit 17a7081

Please sign in to comment.