This commit is contained in:
crusader 2017-11-03 16:46:45 +09:00
parent d061f15efb
commit b80a7aa06d

View File

@ -49,7 +49,7 @@ func (ccr *ClientCodecResponse) ID() interface{} {
func (ccr *ClientCodecResponse) Result(result interface{}) error {
if ccr.err == nil && ccr.response.Result != nil {
if err := json.Unmarshal(*ccr.response.Result, result); err != nil {
if err := json.Unmarshal(*ccr.response.Result, &result); err != nil {
params := [1]interface{}{result}
if err = json.Unmarshal(*ccr.response.Result, &params); err != nil {
ccr.err = err