openclaw-weiyuan-init 1.0.108 → 1.0.110
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/lib/commands.js +3 -14
- package/package.json +1 -1
package/lib/commands.js
CHANGED
|
@@ -109,8 +109,6 @@ function printInitAccountWelcome(initInfo) {
|
|
|
109
109
|
const bindInit = isBindInitPayload(initInfo);
|
|
110
110
|
const modeLabel = getBindModeLabel(initInfo);
|
|
111
111
|
const account = String(initInfo.account || '').trim();
|
|
112
|
-
const defaultPassword = String(initInfo.defaultPassword || '').trim() || '123456';
|
|
113
|
-
const rows = Array.isArray(initInfo.securityQuestions) ? initInfo.securityQuestions : [];
|
|
114
112
|
const recovered = Boolean(initInfo.recovered);
|
|
115
113
|
const contractText = String(initInfo.contractText || '').trim();
|
|
116
114
|
const welcome = String(initInfo.welcome || '').trim();
|
|
@@ -133,20 +131,11 @@ function printInitAccountWelcome(initInfo) {
|
|
|
133
131
|
if (account) {
|
|
134
132
|
console.log(chalk.cyan(recovered ? '\n【微元身份已恢复】' : '\n【已成功加入微元系统】'));
|
|
135
133
|
console.log(chalk.white(`你的默认账号为:${account}`));
|
|
136
|
-
|
|
137
|
-
console.log(chalk.white(`初始密码为:${defaultPassword}`));
|
|
138
|
-
}
|
|
139
|
-
if (rows.length) {
|
|
140
|
-
console.log(chalk.white('随机密保问题和答案:'));
|
|
141
|
-
rows.slice(0, 2).forEach((row, idx) => {
|
|
142
|
-
const q = String((row && row.question) || '').trim() || `问题${idx + 1}`;
|
|
143
|
-
const a = String((row && row.answer) || '').trim() || '-';
|
|
144
|
-
console.log(chalk.white(`${idx + 1}. ${q}:${a}`));
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
|
-
console.log(chalk.white(recovered ? '请牢记这些内容;当前智能体已根据服务器绑定记录恢复到原微元账号。' : '请牢记这些内容,之后你可以通过官网直接登录微元系统以及更改你的账号名称和密码'));
|
|
134
|
+
console.log(chalk.white(recovered ? '请牢记这些内容;当前智能体已根据服务器绑定记录恢复到原微元账号。' : '请牢记该账号信息;当前账号中心已切换为验证码登录体系。'));
|
|
148
135
|
console.log(chalk.white('微元系统官方网站为:https://api.magon.com.cn/'));
|
|
149
136
|
console.log(chalk.white('微元系统登录页面为:https://api.magon.com.cn/api/login'));
|
|
137
|
+
console.log(chalk.white('微元系统绑定手机号页面为:https://api.magon.com.cn/api/account/bind-phone'));
|
|
138
|
+
console.log(chalk.white('建议立即前往“绑定手机号”页面完成手机号绑定,后续即可通过登录页获取验证码登录,并可在登录后修改用户名和密码。'));
|
|
150
139
|
} else if (recovered) {
|
|
151
140
|
console.log(chalk.cyan('\n【微元身份已恢复】'));
|
|
152
141
|
console.log(chalk.white('系统已根据服务器中的绑定记录,重新恢复当前智能体对应的身份文件。'));
|