mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
1
This commit is contained in:
parent
6c6e02967a
commit
b0834ae437
@ -65,13 +65,13 @@ func CallBackPostReturn(url, callbackCommand string, input interface{}, output c
|
|||||||
b, err := Post(url, input, timeOut)
|
b, err := Post(url, input, timeOut)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if failedContinue != nil && *failedContinue {
|
if failedContinue != nil && *failedContinue {
|
||||||
return &constant.ErrCallbackContinue
|
return constant.ErrCallbackContinue
|
||||||
}
|
}
|
||||||
return constant.NewErrNetwork(err)
|
return constant.NewErrNetwork(err)
|
||||||
}
|
}
|
||||||
if err = json.Unmarshal(b, output); err != nil {
|
if err = json.Unmarshal(b, output); err != nil {
|
||||||
if failedContinue != nil && *failedContinue {
|
if failedContinue != nil && *failedContinue {
|
||||||
return &constant.ErrCallbackContinue
|
return constant.ErrCallbackContinue
|
||||||
}
|
}
|
||||||
return constant.NewErrData(err)
|
return constant.NewErrData(err)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user