add null value handle

pull/131/head
Gordon 3 years ago
parent 7301bc30b1
commit e4989d8b9f

@ -84,6 +84,9 @@ func GetGroupMembersInfo(c *gin.Context) {
}
memberListResp := api.GetGroupMembersInfoResp{CommResp: api.CommResp{ErrCode: RpcResp.ErrCode, ErrMsg: RpcResp.ErrMsg}, Data: RpcResp.MemberList}
if len(RpcResp.MemberList) == 0 {
memberListResp.Data = []*open_im_sdk.GroupMemberFullInfo{}
}
log.NewInfo(req.OperationID, "GetGroupMembersInfo api return ", memberListResp)
c.JSON(http.StatusOK, memberListResp)
}

Loading…
Cancel
Save