Commit ae0de502 authored by chenweijian's avatar chenweijian

旧接口屏蔽

parent 9cd914fa
......@@ -54,13 +54,13 @@ import (
func GroupPowerJoin(c *gin.Context) (*mycontext.MyContext, error) {
myContext := mycontext.CreateMyContext(c.Keys)
// 旧版本(3.5.0以下),提示升级
//_, major, minor, _, err := GetAppVersion(c)
//if err != nil {
// return myContext, err
//}
//if major <= 3 && minor < 5 {
// return myContext, bizerr.UpgradeRequired
//}
_, major, minor, _, err := req.GetAppVersion(c)
if err != nil {
return myContext, err
}
if major <= 3 && minor < 5 {
return myContext, bizerr.UpgradeRequired
}
groupPowerId, err := strconv.ParseUint(c.PostForm("groupPowerId"), 10, 64)
if err != nil {
......
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