Commit 387bcf84 authored by hujiebin's avatar hujiebin

ios 贵族6不兼容需要强更

parent 828e4a8d
......@@ -48,6 +48,15 @@ func GetPopularGroups(c *gin.Context) (*mycontext.MyContext, error) {
start := time.Now()
myContext := mycontext.CreateMyContext(c.Keys)
// ios 贵族6不兼容需要强更
deviceType := c.GetHeader(mycontext.DEVICETYPE)
appVersion := c.GetHeader(mycontext.APP_VERSION)
if deviceType == "iOS" {
if low, _ := utils.CompareVersion(appVersion, "< 3.7.0"); low {
return myContext, bizerr.UpgradeRequired
}
}
pageSize, err := strconv.Atoi(c.Query("pageSize"))
if err != nil || pageSize <= 0 {
pageSize = 10
......
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