style(server): fmt print to log

This commit is contained in:
lejianwen
2025-01-02 21:49:37 +08:00
parent 5a09850fc4
commit 63f2fd2f07
2 changed files with 4 additions and 5 deletions

View File

@@ -103,7 +103,7 @@ func (r *Rustdesk) SendCmd(c *gin.Context) {
rc := &RustdeskCmd{}
c.ShouldBindJSON(rc)
if rc.Cmd == "" {
response.Fail(c, 101, "cmd is required")
response.Fail(c, 101, response.TranslateMsg(c, "ParamsError"))
return
}
res, err := service.AllService.ServerCmdService.SendCmd(rc.Cmd, rc.Option)