caipin hace 4 años
padre
commit
865bf26619
Se han modificado 2 ficheros con 3 adiciones y 3 borrados
  1. 2 2
      bootstrap/bootstrap.go
  2. 1 1
      dao/contract_dao.go

+ 2 - 2
bootstrap/bootstrap.go

@@ -172,7 +172,7 @@ const (
 // Returns itself.
 func (b *Bootstrapper) Bootstrap() *Bootstrapper {
 	//设置模板
-	b.SetupViews("./views")
+	//b.SetupViews("./views")
 	// b.SetupSessions(24*time.Hour,
 	// 	[]byte("the-big-and-secret-fash-key-here"),
 	// 	[]byte("lot-secret-of-characters-big-too"),
@@ -187,7 +187,7 @@ func (b *Bootstrapper) Bootstrap() *Bootstrapper {
 	b.SetupErrorHandlers()
 
 	// static files
-	b.Favicon(StaticAssets + Favicon)
+	//b.Favicon(StaticAssets + Favicon)
 	//b.StaticWeb(StaticAssets[1:], StaticAssets)
 	b.HandleDir(StaticAssets[1:], iris.Dir(StaticAssets))
 	b.HandleDir("/docs", iris.Dir("./docs"))

+ 1 - 1
dao/contract_dao.go

@@ -141,7 +141,7 @@ func (d *ContractDao) Update(contractsCm *models.CmContracts, columns []string,
 	}
 
 	// 2.更新项目节表
-	_, err = session.Exec("UPDATE  cm_tree_contracts SET `contract_name` = ?,`contract_price` = ? and contract_status = ? "+
+	_, err = session.Exec("UPDATE  cm_tree_contracts SET `contract_name` = ?,`contract_price` = ? , contract_status = ? "+
 		"where tree_id = ? and project_id = ? and bidsection_id = ? ",
 		contractsCm.Name, contractsCm.Price, contractStatus,
 		treeId, projectId, bidsectionId)