(input: string)
| 817 | const configContent = await fs.readFile(configPath, "utf-8"); |
| 818 | const config = JSON.parse(configContent); |
| 819 | if (config.users && config.users.length > 0) { |
| 820 | lines.push("\n<b>账户信息:</b>"); |
| 821 | config.users.forEach((user: any, index: number) => { |
| 822 | lines.push(`${index + 1}. <b>用户:</b> ${htmlEscape(user.username)} | <b>密码:</b> ${htmlEscape(user.password)}`); |
| 823 | }); |
| 824 | } |
| 825 | } catch (e) { |
| 826 | lines.push("\n无法解析账户信息。"); |