Compare commits

...

2 Commits

Author SHA1 Message Date
junleea 8a48a54c3a Merge branch 'refs/heads/feat-shell-runtime' into release 2025-08-07 20:28:43 +08:00
junleea f3c1ee923a 修复日志输出 2025-08-07 20:28:32 +08:00
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ func ShellWillRunFromServer() {
//执行时间,转成秒
shellRuntime := time.Since(start).Seconds()
if err2 != "" {
resp = append(resp, proto.UpdateShellReq{ID: v.ID, Server: v.Server, Status: 3, ShellResult: err2, ShellRuntime: shellRuntime}) //执行出错
resp = append(resp, proto.UpdateShellReq{ID: v.ID, Server: v.Server, Status: 3, ShellResult: "err:" + err2 + "\nresult:" + res, ShellRuntime: shellRuntime}) //执行出错
} else {
resp = append(resp, proto.UpdateShellReq{ID: v.ID, Server: v.Server, Status: 2, ShellResult: res, ShellRuntime: shellRuntime}) //执行成功
}