From f6a26dcb14670f78c76190c97be5a9dac4149182 Mon Sep 17 00:00:00 2001 From: louwenzhi Date: Tue, 25 May 2021 17:18:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=8E=E5=BA=93=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 2 +- services/qm/implments/View.service.impl.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 0e94040..f87c120 100644 --- a/main.go +++ b/main.go @@ -112,7 +112,7 @@ func imain() { //conf.PreSettring(app) //注册路由 routes.Hub(app) - app.RegisterView(iris.HTML("./web/public", ".html")) + //app.RegisterView(iris.HTML("./web/public", ".html")) // 设置静态资源 app.HandleDir("/public", "./web/public") //注册服务 diff --git a/services/qm/implments/View.service.impl.go b/services/qm/implments/View.service.impl.go index 41c88f5..c0e8392 100644 --- a/services/qm/implments/View.service.impl.go +++ b/services/qm/implments/View.service.impl.go @@ -601,8 +601,8 @@ func (impl *ViewServiceImplement) ViewsOfArticle(context *container.RequestConte artId := orderIds[0] - slave := db.Eloquent.Slave() - slavesession := slave.NewSession() + slaves := db.Eloquent.Slaves() + slavesession := slaves[1].NewSession() defer slavesession.Close() apiDao := api.NewACCUNITSTATUSDAO(slavesession, impl.session.User().Userid) mesData,err := apiDao.SelectOne(orderId, "LaserWelding")