优化首页内容

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

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