| | |
| | | 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) |
| | | } |
| | | |
| | | //启动服务 |