|
@@ -2,7 +2,6 @@ package logic
|
|
|
|
|
|
import (
|
|
|
"context"
|
|
|
- "jyBXSubscribe/entity"
|
|
|
IC "jyBXSubscribe/rpc/init"
|
|
|
"jyBXSubscribe/rpc/internal/svc"
|
|
|
"jyBXSubscribe/rpc/model"
|
|
@@ -45,20 +44,8 @@ func (l *GetSubListLogic) GetSubList(in *bxsubscribe.SubscribeInfosReq) (*bxsubs
|
|
|
accountId, _ := strconv.ParseInt(in.AccountId, 10, 64)
|
|
|
positionId, _ := strconv.ParseInt(in.PositionId, 10, 64)
|
|
|
entId, _ := strconv.ParseInt(in.EntId, 10, 64)
|
|
|
- entUserId, _ := strconv.ParseInt(in.EntUserId, 10, 64)
|
|
|
- userInfoRpc := entity.UserInfoRpc{
|
|
|
- AppId: in.AppId,
|
|
|
- UserId: in.UserId,
|
|
|
- BaseUserId: in.NewUserId,
|
|
|
- EntId: entId,
|
|
|
- EntUserId: entUserId,
|
|
|
- AccountId: accountId,
|
|
|
- PositionType: in.PositionType,
|
|
|
- PositionId: positionId,
|
|
|
- MgoUserId: in.MgoUserId,
|
|
|
- }
|
|
|
//判断用户身份
|
|
|
- userInfo := userInfoRpc.GetUserPowers()
|
|
|
+ userInfo := IC.Middleground.PowerCheckCenter.Check("10000", in.UserId, in.NewUserId, accountId, entId, in.PositionType, positionId)
|
|
|
//是否是付费用户
|
|
|
isPay := !userInfo.Free.IsFree
|
|
|
isPayUser := false
|