fix empty response when calling setuutinfo successfully
This commit is contained in:
parent
25b13d981d
commit
922841ecd1
BIN
APIServer.exe
BIN
APIServer.exe
Binary file not shown.
@ -261,11 +261,11 @@ func (e *EWS) SetUutInfo(cfg cnf.Cfg, logger *log.Logger, host string, addr stri
|
|||||||
rst["ErrMsg"] = err.Error()
|
rst["ErrMsg"] = err.Error()
|
||||||
return rst
|
return rst
|
||||||
}
|
}
|
||||||
|
rst["RESULT"] = "OK"
|
||||||
|
rst["ErrMsg"] = "Updated 1 record."
|
||||||
if cfg.Settings.LogResponse {
|
if cfg.Settings.LogResponse {
|
||||||
logger.Printf("[MSG] %s; %s; Response: %#v\r\n", addr, uri, rst)
|
logger.Printf("[MSG] %s; %s; Response: %#v\r\n", addr, uri, rst)
|
||||||
}
|
}
|
||||||
rst["RESULT"] = "OK"
|
|
||||||
rst["ErrMsg"] = "Updated 1 record."
|
|
||||||
return rst
|
return rst
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user