|
@@ -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("非法请求")
|