mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-13 12:50:25 +08:00
refactor: 图标优化等
This commit is contained in:
@@ -70,9 +70,7 @@ func (m *MachineScript) RunMachineScript(rc *req.Ctx) {
|
||||
res, err := cli.Run(script)
|
||||
// 记录请求参数
|
||||
rc.ReqParam = fmt.Sprintf("[machine: %s, scriptId: %d, name: %s]", cli.GetMachine().GetLogDesc(), scriptId, ms.Name)
|
||||
if err != nil {
|
||||
panic(biz.NewBizErr(fmt.Sprintf("执行命令失败:%s", err.Error())))
|
||||
}
|
||||
biz.ErrIsNilAppendErr(err, "执行命令失败:%s")
|
||||
rc.ResData = res
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user