From 4a53fc51741d3a8f07267db9b9819be278377b8a Mon Sep 17 00:00:00 2001 From: sunty <1172534965@qq.com> Date: 星期三, 15 四月 2020 15:38:04 +0800 Subject: [PATCH] test get line --- controllers/swfsControllers.go | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/controllers/swfsControllers.go b/controllers/swfsControllers.go index a57675d..32aa128 100644 --- a/controllers/swfsControllers.go +++ b/controllers/swfsControllers.go @@ -92,10 +92,10 @@ StopServer(config.Server.ScriptPath) time.Sleep(time.Second * 1) StartServer(config.Server.ScriptPath) - fmt.Println("GetLocalStartupItem: ", GetLocalStartupItem(config.Server.ScriptPath, StartServerScript)) - result := strings.Split("=", GetLocalStartupItem(config.Server.ScriptPath, StartServerScript))[1] + //fmt.Println("GetLocalStartupItem: ", GetLocalStartupItem(config.Server.ScriptPath, StartServerScript)) + result := strings.Split(GetLocalStartupItem(config.Server.ScriptPath, StartServerScript), "=")[1] fmt.Println("result: ", result) - //util.ResponseFormat(c, code.Success, result) + util.ResponseFormat(c, code.Success, result) } //鍚姩鏈嶅姟 -- Gitblit v1.8.0