minimax-status 1.2.3 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/index.js +2 -9
- package/package.json +1 -1
package/cli/index.js
CHANGED
|
@@ -45,7 +45,6 @@ program
|
|
|
45
45
|
let checks = {
|
|
46
46
|
config: false,
|
|
47
47
|
token: false,
|
|
48
|
-
groupId: false,
|
|
49
48
|
api: false,
|
|
50
49
|
};
|
|
51
50
|
|
|
@@ -71,16 +70,10 @@ program
|
|
|
71
70
|
console.log(chalk.red("✗ Token: ") + chalk.gray("未配置"));
|
|
72
71
|
}
|
|
73
72
|
|
|
74
|
-
//
|
|
75
|
-
if (api.groupId) {
|
|
76
|
-
checks.groupId = true;
|
|
77
|
-
console.log(chalk.green("✓ GroupID: ") + chalk.gray("已配置"));
|
|
78
|
-
} else {
|
|
79
|
-
console.log(chalk.red("✗ GroupID: ") + chalk.gray("未配置"));
|
|
80
|
-
}
|
|
73
|
+
// ⚠ 不再检查 GroupID — 用量接口从 token JWT 自动解析 group_id,不需要手动配置
|
|
81
74
|
|
|
82
75
|
// 测试API连接
|
|
83
|
-
if (checks.token
|
|
76
|
+
if (checks.token) {
|
|
84
77
|
try {
|
|
85
78
|
await api.getUsageStatus();
|
|
86
79
|
checks.api = true;
|