Commit c26bc62e authored by hujiebin's avatar hujiebin

feat:判断是否删除成功

parent 2fa88c49
......@@ -1769,8 +1769,9 @@ func GroupIn(c *gin.Context) (*mycontext.MyContext, error) {
if group_m.CountTRTC(model) > total {
roomUser, err := group_m.GetRoomOnlineUser(myContext, groupId)
if err == nil && roomUser.Total == 0 {
_ = group_m.DeleteTRTC(model, groupId)
provider = group_e.GroupProvider_SW
if err := group_m.DeleteTRTC(model, groupId); err == nil {
provider = group_e.GroupProvider_SW
}
}
}
} else {
......
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