作者 陈志颖

fix:更新导入模板

@@ -751,7 +751,7 @@ func (c *OrderInfoController) DownloadTemplate() { @@ -751,7 +751,7 @@ func (c *OrderInfoController) DownloadTemplate() {
751 } 751 }
752 752
753 // 获取导入模板 753 // 获取导入模板
754 - req := httplib.Get("http://suplus-file-dev.fjmaimaimai.com/upload/file/2021010803305336443.xlsx") 754 + req := httplib.Get("http://suplus-file-dev.fjmaimaimai.com/upload/file/2021020111293523855.xlsx")
755 err = req.ToFile(constant.IMPORT_EXCEL) 755 err = req.ToFile(constant.IMPORT_EXCEL)
756 if err != nil { 756 if err != nil {
757 logs.Error("could not save to file: ", err) 757 logs.Error("could not save to file: ", err)
@@ -163,10 +163,18 @@ func (u Users) String() string { @@ -163,10 +163,18 @@ func (u Users) String() string {
163 } 163 }
164 164
165 func main() { 165 func main() {
  166 + // 本地开发
  167 + //db := pg.Connect(&pg.Options{
  168 + // User: "postgres",
  169 + // Addr: ":5432",
  170 + // Password: "1993618jack",
  171 + // Database: "partner_test",
  172 + //})
  173 + // 测试环境
166 db := pg.Connect(&pg.Options{ 174 db := pg.Connect(&pg.Options{
167 User: "postgres", 175 User: "postgres",
168 - Addr: ":5432",  
169 - Password: "1993618jack", 176 + Addr: "114.55.200.59:31543",
  177 + Password: "eagle1010",
170 Database: "partner_test", 178 Database: "partner_test",
171 }) 179 })
172 defer db.Close() 180 defer db.Close()