Browse Source

Merge branch 'dev4.5.2' of http://192.168.3.207:8080/qmx/jy into dev4.5.2

zhangyuhan 4 năm trước cách đây
mục cha
commit
375478fdda

+ 4 - 1
src/jfw/modules/bigmember/src/service/portrait/subvipPortraitAction.go

@@ -155,9 +155,12 @@ func (this *SubVipPortrait) PortraitRecord() {
 		month, _ := this.GetInteger("month")
 		pageNum, _ := this.GetInteger("pageNum")
 		pageSize, _ := this.GetInteger("pageSize")
-		if year == 0 || month == 0 || pageSize <= 0 || pageSize > 100 {
+		if year == 0 || month == 0 {
 			return nil, fmt.Errorf("请求参数异常")
 		}
+		if pageSize < 1 || pageSize > 50 {
+			pageSize = 50
+		}
 		bigMsg := jy.GetBigVipUserBaseMsg(userId, db.Mysql, db.Mgo)
 		if bigMsg.VipStatus <= 0 && bigMsg.Vip_BuySet.Upgrade != 1 {
 			return nil, fmt.Errorf("非法请求")