feat: 支持ZIP压缩包上传(含密码保护)
This commit is contained in:
@@ -20,6 +20,13 @@ func RunCleanScript(inputPath, outputPath string, opts *CleanOptions) (*CleanRes
|
||||
return cleaner.Clean(inputPath, outputPath, opts)
|
||||
}
|
||||
|
||||
// ConvertBillFile 转换账单文件格式(xlsx -> csv,处理编码)
|
||||
// 返回转换后的文件路径和检测到的账单类型
|
||||
func ConvertBillFile(inputPath string) (outputPath string, billType string, err error) {
|
||||
cleaner := adapter.GetCleaner()
|
||||
return cleaner.Convert(inputPath)
|
||||
}
|
||||
|
||||
// DetectBillTypeFromOutput 从脚本输出中检测账单类型
|
||||
// 保留此函数以兼容其他调用
|
||||
func DetectBillTypeFromOutput(output string) string {
|
||||
|
||||
Reference in New Issue
Block a user