作者 陈志颖

fix:更新导入模板

... ... @@ -751,7 +751,7 @@ func (c *OrderInfoController) DownloadTemplate() {
}
// 获取导入模板
req := httplib.Get("http://suplus-file-dev.fjmaimaimai.com/upload/file/2021010803305336443.xlsx")
req := httplib.Get("http://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)
... ...
... ... @@ -163,10 +163,18 @@ func (u Users) String() string {
}
func main() {
// 本地开发
//db := pg.Connect(&pg.Options{
// User: "postgres",
// Addr: ":5432",
// Password: "1993618jack",
// Database: "partner_test",
//})
// 测试环境
db := pg.Connect(&pg.Options{
User: "postgres",
Addr: ":5432",
Password: "1993618jack",
Addr: "114.55.200.59:31543",
Password: "eagle1010",
Database: "partner_test",
})
defer db.Close()
... ...