Initial commit: Telegram Management System
Some checks failed
Deploy / deploy (push) Has been cancelled
Some checks failed
Deploy / deploy (push) Has been cancelled
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>
This commit is contained in:
20
restore-captcha.js
Normal file
20
restore-captcha.js
Normal file
@@ -0,0 +1,20 @@
|
||||
// 恢复验证码的脚本
|
||||
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('✗ 未找到备份文件');
|
||||
}
|
||||
Reference in New Issue
Block a user