Commit e3283050 authored by chenweijian's avatar chenweijian

版本升级提示

parent 4dafb6f8
......@@ -1753,6 +1753,14 @@ func GroupIn(c *gin.Context) (*mycontext.MyContext, error) {
provider := group_e.GroupProvider_SW
if group_m.IsUseTRTC(model, groupId) {
// 版本升级提示,旧版本(3.6.0以下),提示升级
_, major, minor, _, err := req.GetAppVersion(c)
if err != nil {
return myContext, err
}
if (major < 3) || (major == 3 && minor < 6) {
return myContext, bizerr.UpgradeRequired
}
provider = group_e.GroupProvider_TRTC
}
......
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