优化首页内容

This commit is contained in:
georgehao
2019-07-06 17:05:19 +08:00
parent 37fb659c4e
commit 6a30e9265c
49 changed files with 1060 additions and 729 deletions

View File

@@ -80,8 +80,8 @@ func ResetCommandJob(id int, serverId int, name string, command string) *Job {
err, isTimeout := runCmdWithTimeout(cmd, timeout)
jobResult = new(JobResult)
jobResult.ErrMsg = libs.GbkAsUtf8(bufErr.String())
jobResult.OutMsg = libs.GbkAsUtf8(bufOut.String())
jobResult.ErrMsg = bufErr.String()
jobResult.OutMsg = bufOut.String()
jobResult.IsOk = true
if err != nil {
jobResult.IsOk = false