(nodeArch: string)
| 807 | lines.push(`<b>端口:</b> ${port}`); |
| 808 | if (publicIp && port === "listen") { |
| 809 | const url = `http://${publicIp}:5244/`; |
| 810 | lines.push(`<b>链接:</b> <a href="${htmlEscape(url)}">${htmlEscape(url)}</a>`); |
| 811 | } |
| 812 | |
| 813 | // 显示用户账户信息 |
| 814 | const configPath = `${installPath}/data/config.json`; |
| 815 | if (await this.fileExists(configPath)) { |
| 816 | try { |
| 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>"); |
no outgoing calls
no test coverage detected