|
@@ -194,6 +194,9 @@ func (this *SubVipPortrait) SubVipPortrait() {
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
|
|
+ if userId == "" && power <= 1 {
|
|
|
|
+ return nil, fmt.Errorf("无查看权益")
|
|
|
|
+ }
|
|
rData, err := cepm.WinnerPortraitData(&entity.PortraitScreen{
|
|
rData, err := cepm.WinnerPortraitData(&entity.PortraitScreen{
|
|
Ent: entId,
|
|
Ent: entId,
|
|
Match: this.GetString("match"),
|
|
Match: this.GetString("match"),
|
|
@@ -464,7 +467,7 @@ func (this *SubVipPortrait) BuyerPortrait() {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
redisKey := fmt.Sprintf("buyerPortraitKey_%s", buyerName)
|
|
redisKey := fmt.Sprintf("buyerPortraitKey_%s", buyerName)
|
|
- if userId == "" || power <= 1 {
|
|
|
|
|
|
+ if userId == "" && power <= 1 {
|
|
if bytes, err := redis.GetBytes("other", redisKey); err == nil && bytes != nil {
|
|
if bytes, err := redis.GetBytes("other", redisKey); err == nil && bytes != nil {
|
|
rData := make(map[string]interface{})
|
|
rData := make(map[string]interface{})
|
|
if err = json.Unmarshal(*bytes, &rData); err != nil {
|
|
if err = json.Unmarshal(*bytes, &rData); err != nil {
|