...
|
...
|
@@ -751,7 +751,7 @@ func (c *OrderInfoController) DownloadTemplate() { |
|
|
}
|
|
|
|
|
|
// 获取导入模板
|
|
|
req := httplib.Get("http://suplus-file-dev.fjmaimaimai.com/upload/file/2021020111293523855.xlsx")
|
|
|
req := httplib.Get("https://suplus-file-dev.fjmaimaimai.com/upload/file/2021020111293523855.xlsx")
|
|
|
err = req.ToFile(constant.IMPORT_EXCEL)
|
|
|
if err != nil {
|
|
|
logs.Error("could not save to file: ", err)
|
...
|
...
|
@@ -766,7 +766,7 @@ func (c *OrderInfoController) DownloadTemplate() { |
|
|
} else {
|
|
|
logs.Info(resp)
|
|
|
ret = map[string]interface{}{
|
|
|
"url": "http://" + c.Ctx.Request.Host + "/" + constant.APP_NAME + "/download/订单数据模板.xlsx",
|
|
|
"url": "https://" + c.Ctx.Request.Host + "/" + constant.APP_NAME + "/download/订单数据模板.xlsx",
|
|
|
}
|
|
|
c.ResponseData(ret)
|
|
|
}
|
...
|
...
|
|