mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-24 02:16:16 +08:00
getui
This commit is contained in:
parent
06370a763c
commit
fdefe09187
@ -149,7 +149,6 @@ func (g *Getui) request(url string, content interface{}, token string, returnStr
|
|||||||
req.Header.Set(token, token)
|
req.Header.Set(token, token)
|
||||||
}
|
}
|
||||||
req.Header.Set("content-type", "application/json")
|
req.Header.Set("content-type", "application/json")
|
||||||
req.Header.Set("content-type", "charset=utf-8")
|
|
||||||
resp, err := client.Do(req)
|
resp, err := client.Do(req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
@ -159,7 +158,7 @@ func (g *Getui) request(url string, content interface{}, token string, returnStr
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
log.NewInfo(operationID, "getui", utils.GetSelfFuncName(), string(result))
|
log.NewInfo(operationID, "getui", utils.GetSelfFuncName(), "resp, ", string(result))
|
||||||
if err := json.Unmarshal(result, returnStruct); err != nil {
|
if err := json.Unmarshal(result, returnStruct); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user