提交 ab9f5662 编写于 作者: aaronchen2k2k's avatar aaronchen2k2k

fix issues

上级 113f4b14
......@@ -2,6 +2,7 @@ package service
import (
"encoding/csv"
"fmt"
"github.com/360EntSecGroup-Skylar/excelize/v2"
consts "github.com/easysoft/zendata/internal/pkg/const"
logUtils "github.com/easysoft/zendata/pkg/utils/log"
......@@ -45,7 +46,7 @@ func (s *OutputService) GenExcel() {
f.SetCellValue(sheetName, colName, val)
} else if vari.GlobalVars.OutputFormat == consts.FormatCsv {
csvRow = append(csvRow, val.(string))
csvRow = append(csvRow, fmt.Sprintf("%v", val))
}
j++
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册