WH01243 2 rokov pred
rodič
commit
ded2a94771

+ 2 - 1
common/src/qfw/util/jy/bigVipPower.go

@@ -152,8 +152,9 @@ func GetBigVipUserBaseMsg(session *httpsession.Session, middleground middlegroun
 	entId := qutil.Int64All(session.Get("entId"))
 	positionType := qutil.Int64All(session.Get("positionType"))
 	accountId := qutil.Int64All(session.Get("accountId"))
+	positionId := qutil.Int64All(session.Get("positionId"))
 	userPower := BigVipBaseMsg{}
-	data := middleground.PowerCheckCenter.Check("10000", userId, baseUserId, accountId, entId)
+	data := middleground.PowerCheckCenter.Check("10000", userId, baseUserId, accountId, entId, positionType, positionId)
 	if positionType == 0 {
 		userId = qutil.InterfaceToStr(session.Get("userId"))
 	} else {

+ 8 - 6
middleground/powercheckcenter.go

@@ -35,15 +35,17 @@ func (p *powerCheckCenter) newClient() zrpc.Client {
 	return client
 }
 
-func (p *powerCheckCenter) Check(appid, userId string, baseUserId, accountId, entId int64) *pb.CheckResp {
+func (p *powerCheckCenter) Check(appid, userId string, baseUserId, accountId, entId, positionType, positionId int64) *pb.CheckResp {
 	client := p.newClient()
 	defer client.Conn().Close()
 	resp, err := powercheck.NewPowerCheck(client).Check(context.Background(), &pb.CheckReq{
-		Appid:      appid,
-		Userid:     userId,
-		BaseUserId: baseUserId,
-		AccountId:  accountId,
-		EntId:      entId,
+		Appid:        appid,
+		Userid:       userId,
+		BaseUserId:   baseUserId,
+		AccountId:    accountId,
+		EntId:        entId,
+		PositionType: positionType,
+		PositionId:   positionId,
 	})
 	if err != nil {
 		log.Println(err)