From f7a1fdd0052267cc88eb403c6a4edb3841d6b515 Mon Sep 17 00:00:00 2001 From: pixel <303176530@qq.com> Date: Fri, 17 Jan 2020 09:09:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E6=97=B6=E5=85=B3=E9=97=AD=E5=BD=93?= =?UTF-8?q?=E5=89=8D=E7=B3=BB=E7=BB=9F=E6=A3=80=E6=B5=8B=20=E7=AD=89?= =?UTF-8?q?=E5=BE=85linux=E7=B3=BB=E7=BB=9F=E9=85=8D=E7=BD=AE=E5=AE=8C?= =?UTF-8?q?=E6=88=90=E5=90=8E=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- QMPlusServer/main.go | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/QMPlusServer/main.go b/QMPlusServer/main.go index 5cf19f06..a34c829a 100644 --- a/QMPlusServer/main.go +++ b/QMPlusServer/main.go @@ -8,7 +8,7 @@ import ( "gin-vue-admin/init/qmlog" "gin-vue-admin/init/qmsql" "gin-vue-admin/init/registTable" - "runtime" + //"runtime" ) // @title Swagger Example API @@ -31,14 +31,14 @@ func main() { Router := initRouter.InitRouter() // 注册路由 qmlog.QMLog.Info("服务器开启") // 日志测试代码 //Router.RunTLS(":443","ssl.pem", "ssl.key") // https支持 需要添加中间件 - sysType := runtime.GOOS - - if sysType == "linux" { - // LINUX系统 - // 借助endless开发无感知重启后台 以及前端接口重启后台功能 - } - if sysType == "windows" { - // WIN系统 - cmd.RunWindowsServer(Router) - } + //sysType := runtime.GOOS + // + //if sysType == "linux" { + // // LINUX系统 + // // 借助endless开发无感知重启后台 以及前端接口重启后台功能 + //} + //if sysType == "windows" { + // WIN系统 + cmd.RunWindowsServer(Router) + //} }