feat: 添加扫描结果响应中的总结果数和结束结果数字段,并优化错误日志记录

This commit is contained in:
tongque
2025-04-22 19:05:05 +08:00
parent 2d9ea9c1d3
commit 64588ab28a
4 changed files with 52 additions and 5 deletions
+7
View File
@@ -70,6 +70,13 @@ func InitOutput() error {
if ApiAddr != "" {
OutputFormat = "csv"
Outputfile = filepath.Join(dir, "fscanapi.csv")
Num = 0
End = 0
if _, err := os.Stat(Outputfile); err == nil {
if err := os.Remove(Outputfile); err != nil {
return fmt.Errorf(GetText("output_file_remove_failed", err))
}
}
}
manager := &OutputManager{