Commit c26bc62e authored by hujiebin's avatar hujiebin

feat:判断是否删除成功

parent 2fa88c49
......@@ -1769,10 +1769,11 @@ 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)
if err := group_m.DeleteTRTC(model, groupId); err == nil {
provider = group_e.GroupProvider_SW
}
}
}
} else {
//dayMaxCovertNum := int64(20)
//numKey := rediskey.GetConvertToTRTCNum()
......
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