This commit is contained in:
richboo111
2023-04-27 15:00:11 +08:00
parent 7cb41a21e7
commit 53cafecd57
2 changed files with 4 additions and 1 deletions

View File

@@ -63,7 +63,7 @@ func (c *IMController) StartWebSocket() {
func (c *IMController) GetIMUserList() {
c.callGetIMUserList(func(params *tImGetIMUserListParams) (retVal interface{}, errCode string, err error) {
var relInfo []im.RelInfo
if err = json.Unmarshal([]byte(params.PayLoad), &relInfo); err != nil {
if err = json.Unmarshal([]byte(params.PayLoad), &relInfo); err == nil {
retVal, err = im.GetImUserList(relInfo)
}
return retVal, "", err