feat: Add team registration execution API handler.

This commit is contained in:
2026-02-01 06:55:50 +08:00
parent 64d2be116c
commit eb74a1cbab

View File

@@ -369,6 +369,13 @@ func runTeamRegProcess(config TeamRegConfig) {
teamRegState.Imported = count teamRegState.Imported = count
teamRegState.mu.Unlock() teamRegState.mu.Unlock()
addTeamRegLog(fmt.Sprintf("[系统] 成功导入 %d 个账号", count)) addTeamRegLog(fmt.Sprintf("[系统] 成功导入 %d 个账号", count))
// 导入成功后删除 JSON 文件
if err := os.Remove(outputFile); err != nil {
addTeamRegLog(fmt.Sprintf("[警告] 删除临时文件失败: %v", err))
} else {
addTeamRegLog(fmt.Sprintf("[系统] 已清理临时文件: %s", filepath.Base(outputFile)))
}
} }
} }
} }