Quellcode durchsuchen

fix:企业画像免费用户打码修改

duxin vor 1 Jahr
Ursprung
Commit
6d22133e07

+ 5 - 3
src/jfw/modules/bigmember/src/service/portrait/memberPortraitAction.go

@@ -1,7 +1,9 @@
 package portrait
 
 import (
+	"app.yhyue.com/moapp/jypkg/common/src/qfw/util/jy"
 	"fmt"
+	"jy/src/jfw/modules/bigmember/src/config"
 	"jy/src/jfw/modules/bigmember/src/entity"
 	"jy/src/jfw/modules/bigmember/src/util"
 	"log"
@@ -11,7 +13,6 @@ import (
 	. "app.yhyue.com/moapp/jybase/api"
 	qutil "app.yhyue.com/moapp/jybase/common"
 	"app.yhyue.com/moapp/jybase/encrypt"
-
 	"app.yhyue.com/moapp/jybase/go-xweb/xweb"
 )
 
@@ -42,7 +43,7 @@ type EntPortrait struct {
 func (this *EntPortrait) EntDetail() {
 	userId := qutil.ObjToString(this.GetSession("userId"))
 	rData, errMsg := func() (interface{}, error) {
-		cepm, _, err, equity := entity.CreatePortraitManager(this.Session(), "entDetail")
+		cepm, _, err, _ := entity.CreatePortraitManager(this.Session(), "entDetail")
 		if err != nil {
 			return nil, err
 		}
@@ -51,7 +52,8 @@ func (this *EntPortrait) EntDetail() {
 		if err != nil {
 			return nil, err
 		}
-		if !equity && entInfo["company_phone"] != "" {
+		vipData := jy.GetBigVipUserBaseMsg(this.Session(), *config.Middleground)
+		if (vipData.VipStatus <= 0 && vipData.Status <= 0 && vipData.EntnicheStatus <= 0) && entInfo["company_phone"] != "" {
 			entInfo["company_phone"] = maskCompanyPhone(qutil.InterfaceToStr(entInfo["company_phone"]))
 		}
 		return entInfo, nil

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

@@ -57,7 +57,8 @@ func (this *SubVipPortrait) SubVipEntDetail() {
 		if err != nil {
 			return nil, err
 		}
-		if equity < 2 && entInfo["company_phone"] != "" {
+		vipData := jy.GetBigVipUserBaseMsg(this.Session(), *config.Middleground)
+		if (vipData.VipStatus <= 0 && vipData.Status <= 0 && vipData.EntnicheStatus <= 0 && equity != 3) && entInfo["company_phone"] != "" {
 			entInfo["company_phone"] = maskCompanyPhone(qutil.InterfaceToStr(entInfo["company_phone"]))
 		}
 		return entInfo, nil