fix empty response when calling setuutinfo successfully

This commit is contained in:
r0n1n7an 2023-12-09 16:12:18 +08:00
parent 25b13d981d
commit 922841ecd1
2 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@ -261,11 +261,11 @@ func (e *EWS) SetUutInfo(cfg cnf.Cfg, logger *log.Logger, host string, addr stri
rst["ErrMsg"] = err.Error()
return rst
}
rst["RESULT"] = "OK"
rst["ErrMsg"] = "Updated 1 record."
if cfg.Settings.LogResponse {
logger.Printf("[MSG] %s; %s; Response: %#v\r\n", addr, uri, rst)
}
rst["RESULT"] = "OK"
rst["ErrMsg"] = "Updated 1 record."
return rst
}