diff --git a/conf/app.go b/conf/app.go index 094c6a2..24e6d7f 100644 --- a/conf/app.go +++ b/conf/app.go @@ -4,9 +4,9 @@ package conf // //var Baseurl = "http://localhost:22000" -var ExampleFile = "http://localhost:8094/public/uploadxlsx/example.xlsx" +var ExampleFile = "http://localhost:8096/public/uploadxlsx/example.xlsx" -var Baseurl = "http://localhost:8094" +var Baseurl = "http://localhost:8096" //var ExampleFile = "http://localhost:8094/public/uploadxlsx/example.xlsx" // diff --git a/conf/db.go b/conf/db.go index db8174e..67b9bad 100644 --- a/conf/db.go +++ b/conf/db.go @@ -13,12 +13,12 @@ type DbConf struct { //线上服务器配置 var MasterDbConfig DbConf = DbConf{ - Host: "127.0.0.1", + Host: "localhost", Port: 3306, User: "root", Pwd: "Leit2020", DbName: "saisiwei", - BackUp: "C:\\lapp_-wy\\dblog", + BackUp: "C:\\Saisiwei\\dblog", } diff --git a/db/db.go b/db/db.go index bc7172b..c33a09a 100644 --- a/db/db.go +++ b/db/db.go @@ -41,7 +41,7 @@ func MasterEngine() *xorm.Engine { c.User, c.Pwd, c.Host, c.Port, c.DbName) engine, err := xorm.NewEngine(conf.DriverName, driveSource) //开启sql,debug - engine.ShowSQL(true) + //engine.ShowSQL(true) if err != nil { log.Fatal("dbhelper.DbinstanceMaster error= ", err) return nil diff --git a/main.go b/main.go index 3bf6676..de23805 100644 --- a/main.go +++ b/main.go @@ -38,7 +38,7 @@ func main() { //DisplayName: "wy8094-Server", Name: "SaisiweiServer", DisplayName: "SaisiweiServer", - Description: "this is LappServer", + Description: "this is SaisiweiServer", } prg := &program{} @@ -101,7 +101,7 @@ func imain() { preset.PreSettring(app) //注册路由 routes.Hub(app) - app.RegisterView(iris.HTML("./web/public", ".html")) + //app.RegisterView(iris.HTML("./web/public", ".html")) // 设置静态资源 app.HandleDir("/public", "./web/public") //数据备份