|
@@ -260,10 +260,11 @@ func (e *ExportByDbReq) ExportDataByDb() []byte {
|
|
|
if stype == "" {
|
|
|
stype = "public"
|
|
|
}
|
|
|
- folderPath := fmt.Sprintf("%s/%s/%s", ComFileDir, stype, timeStr)
|
|
|
+ folderPath := fmt.Sprintf("%s/%s", ComFileDir, stype)
|
|
|
pathArr := exportA(e.Query, folderPath, timeStr, key)
|
|
|
if len(pathArr) > 0 {
|
|
|
- pathstr := compressFiles(pathArr, folderPath, folderPath, timeStr)
|
|
|
+ folderPath = fmt.Sprintf("%s/%s", folderPath, timeStr)
|
|
|
+ pathstr := compressFiles(pathArr, ComFileUrl, folderPath, timeStr)
|
|
|
state := sendMailA(e.Title, e.Mails, e.Content, pathstr)
|
|
|
|
|
|
BiService.Insert("export_record", map[string]interface{}{
|