Commit 8c06f31f authored by hujiebin's avatar hujiebin

feat:停止导量

parent f9303908
...@@ -1762,18 +1762,18 @@ func GroupIn(c *gin.Context) (*mycontext.MyContext, error) { ...@@ -1762,18 +1762,18 @@ func GroupIn(c *gin.Context) (*mycontext.MyContext, error) {
provider := group_e.GroupProvider_SW provider := group_e.GroupProvider_SW
if group_m.IsUseTRTC(model, groupId) { if group_m.IsUseTRTC(model, groupId) {
provider = group_e.GroupProvider_TRTC provider = group_e.GroupProvider_TRTC
total := int64(2000) //total := int64(2000)
if !config.AppIsRelease() { //if !config.AppIsRelease() {
total = 0 // total = 0
} //}
if group_m.CountTRTC(model) > total { //if group_m.CountTRTC(model) > total {
roomUser, err := group_m.GetRoomOnlineUser(myContext, groupId) // roomUser, err := group_m.GetRoomOnlineUser(myContext, groupId)
if err == nil && roomUser.Total == 0 { // if err == nil && roomUser.Total == 0 {
if err := group_m.DeleteTRTC(model, groupId); err == nil { // if err := group_m.DeleteTRTC(model, groupId); err == nil {
provider = group_e.GroupProvider_SW // provider = group_e.GroupProvider_SW
} // }
} // }
} //}
} else { } else {
//dayMaxCovertNum := int64(20) //dayMaxCovertNum := int64(20)
//numKey := rediskey.GetConvertToTRTCNum() //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