|
@@ -129,7 +129,7 @@ func (this *SubVipPortrait) SubVipPortrait() {
|
|
|
if entId == "" {
|
|
|
return nil, fmt.Errorf("参数异常")
|
|
|
}
|
|
|
- cepm, _, err := entity.CreateSubVipPortraitManager(userId, "entPortrait", entId, true)
|
|
|
+ cepm, power, err := entity.CreateSubVipPortraitManager(userId, "entPortrait", entId, true)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
@@ -141,8 +141,11 @@ func (this *SubVipPortrait) SubVipPortrait() {
|
|
|
Area: this.GetString("area"),
|
|
|
ScopeClass: this.GetString("scopeClass"),
|
|
|
TimeRange: this.GetString("timeRange"),
|
|
|
- HasPower: true,
|
|
|
+ HasPower: power > 0,
|
|
|
})
|
|
|
+ if power == 3 {
|
|
|
+ rData["onTrial"] = true
|
|
|
+ }
|
|
|
return rData, nil
|
|
|
}()
|
|
|
if errMsg != nil {
|
|
@@ -267,7 +270,7 @@ func (this *SubVipPortrait) BuyerNewMsg() {
|
|
|
}
|
|
|
pageNum, _ := this.GetInteger("pageNum")
|
|
|
pageSize, _ := this.GetInteger("pageSize")
|
|
|
- cepm, hasPower, err := entity.CreateSubVipPortraitManager(userId, "buyerPortrait_newMsg", buyer, false)
|
|
|
+ cepm, power, err := entity.CreateSubVipPortraitManager(userId, "buyerPortrait_newMsg", buyer, false)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
@@ -281,7 +284,7 @@ func (this *SubVipPortrait) BuyerNewMsg() {
|
|
|
Area: this.GetString("area"),
|
|
|
ScopeClass: this.GetString("scopeClass"),
|
|
|
TimeRange: this.GetString("timeRange"),
|
|
|
- HasPower: hasPower,
|
|
|
+ HasPower: power > 0,
|
|
|
},
|
|
|
PageNum: pageNum,
|
|
|
PageSize: pageSize,
|
|
@@ -347,11 +350,14 @@ func (this *SubVipPortrait) BuyerPortrait() {
|
|
|
Area: this.GetString("area"),
|
|
|
ScopeClass: this.GetString("scopeClass"),
|
|
|
TimeRange: this.GetString("timeRange"),
|
|
|
- HasPower: power,
|
|
|
+ HasPower: power > 0,
|
|
|
}, flag)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
+ if power == 3 {
|
|
|
+ rData["onTrial"] = true
|
|
|
+ }
|
|
|
return rData, nil
|
|
|
}()
|
|
|
if errMsg != nil {
|