()
| 734 | const lines: string[] = []; |
| 735 | if (timeout > 0) lines.push(`⏱ 验证时间:<b>${htmlEscape(timeout)}</b> 秒`); |
| 736 | if (maxTries > 0) lines.push(`🔢 剩余次数:<b>${htmlEscape(remaining > 0 ? remaining : maxTries)}</b> 次`); |
| 737 | lines.push(`⚠️ 验证失败将会:${htmlEscape(actionDesc)}`); |
| 738 | return lines.length ? "\n\n" + lines.join("\n") : ""; |
| 739 | } |
| 740 | |
| 741 | switch (state.mode) { |
| 742 | case CaptchaMode.MATH: { |
| 743 | const footer = buildFooter(); |
| 744 | return custom |
| 745 | ? htmlEscape(custom).replace("{question}", htmlEscape(state.question)) |
no test coverage detected