pull/455/head
skiffer-git 2 years ago committed by Xinwei Xiong(cubxxw-openim)
parent 95b9f0d4a3
commit fd30e5f469

@ -7,6 +7,7 @@
package http package http
import ( import (
"Open_IM/pkg/common/log"
"bytes" "bytes"
"encoding/json" "encoding/json"
"io/ioutil" "io/ioutil"
@ -59,6 +60,7 @@ func PostReturn(url string, input, output interface{}, timeOut int) error {
if err != nil { if err != nil {
return err return err
} }
log.Info("post resp content: ", string(b))
if err = json.Unmarshal(b, output); err != nil { if err = json.Unmarshal(b, output); err != nil {
return err return err
} }

Loading…
Cancel
Save