This commit is contained in:
crusader 2018-04-06 19:44:51 +09:00
parent 70b50d14bb
commit 280cda6238

View File

@ -132,7 +132,7 @@ func (src *ServerRequestCodec) NewResponseWithString(reply string, err error) ([
res := src.newServerResponse(nil, err)
r := strings.TrimSpace(reply)
if "" != r {
if nil == err && "" != r {
var i interface{}
mErr := json.Unmarshal([]byte(r), &i)
if nil != mErr {