...
|
...
|
@@ -6,6 +6,7 @@ import ( |
|
|
"errors"
|
|
|
"fmt"
|
|
|
"github.com/beego/beego/v2/client/httplib"
|
|
|
"os"
|
|
|
"path"
|
|
|
"regexp"
|
|
|
"strconv"
|
...
|
...
|
@@ -659,6 +660,12 @@ func (c *OrderInfoController) DownloadTemplate() { |
|
|
c.ResponseError(errors.New("类型编码错误"))
|
|
|
}
|
|
|
|
|
|
// 创建下载文件夹
|
|
|
mkErr := os.Mkdir("download", os.ModePerm)
|
|
|
if mkErr != nil {
|
|
|
fmt.Println(mkErr)
|
|
|
}
|
|
|
|
|
|
// 获取导入模板
|
|
|
req := httplib.Get("http://suplus-file-dev.fjmaimaimai.com/upload/file/2021010803305336443.xlsx")
|
|
|
err = req.ToFile(constant.IMPORT_EXCEL)
|
...
|
...
|
|