Commit eaef4961 authored by hujiebin's avatar hujiebin

feat:空指针保护

parent 2aae7dcc
......@@ -182,9 +182,11 @@ func (s *GroupService) GroupIn(userId uint64, externalId string, groupUuid strin
if err != nil {
model.Log.Errorf("GroupIn GetGroupUserOrInit err:%v, groupId:%v, userId:%v", err, groupUuid, userId)
}
if groupUser != nil {
if err := groupUser.SetRoomInTime().Persistent(); err != nil {
model.Log.Errorf("GroupIn groupUser Persistent err:%v, groupId:%v, userId:%v", err, groupUuid, userId)
}
}
// 发送进群TIM信令。fixme: 应该发在event处理
isVip, err := user.CheckVip()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment