Files
telegram-management-system/restore-captcha.js
你的用户名 237c7802e5
Some checks failed
Deploy / deploy (push) Has been cancelled
Initial commit: Telegram Management System
Full-stack web application for Telegram management
- Frontend: Vue 3 + Vben Admin
- Backend: NestJS
- Features: User management, group broadcast, statistics

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-04 15:37:50 +08:00

20 lines
614 B
JavaScript

// 恢复验证码的脚本
const fs = require('fs');
const path = require('path');
const loginFilePath = path.join(__dirname, 'frontend-vben/apps/web-antd/src/views/_core/authentication/login.vue');
const backupFilePath = loginFilePath + '.backup';
// 检查备份文件是否存在
if (fs.existsSync(backupFilePath)) {
// 恢复备份
const backupContent = fs.readFileSync(backupFilePath, 'utf8');
fs.writeFileSync(loginFilePath, backupContent);
// 删除备份文件
fs.unlinkSync(backupFilePath);
console.log('✓ 验证码已恢复');
} else {
console.log('✗ 未找到备份文件');
}