Browse Source

企业订阅切换

wangchuanjin 2 years ago
parent
commit
45225e8533
1 changed files with 6 additions and 2 deletions
  1. 6 2
      jyBXSubscribe/rpc/internal/logic/getsublistlogic.go

+ 6 - 2
jyBXSubscribe/rpc/internal/logic/getsublistlogic.go

@@ -1,14 +1,15 @@
 package logic
 
 import (
-	"app.yhyue.com/moapp/jybase/common"
 	"context"
-	"github.com/zeromicro/go-zero/core/logx"
 	IC "jyBXSubscribe/rpc/init"
 	"jyBXSubscribe/rpc/internal/svc"
 	"jyBXSubscribe/rpc/model"
 	"jyBXSubscribe/rpc/type/bxsubscribe"
 	"time"
+
+	"app.yhyue.com/moapp/jybase/common"
+	"github.com/zeromicro/go-zero/core/logx"
 )
 
 type GetSubListLogic struct {
@@ -32,6 +33,9 @@ func (l *GetSubListLogic) GetSubList(in *bxsubscribe.SubscribeInfosReq) (*bxsubs
 	//超级订阅 i_apppushunread=0
 	//大会员 i_member_apppushunread=0
 	//商机管理 i_entniche_apppushunread=0
+	if in.IsEnt {
+		in.UserType = model.EntnicheFlag
+	}
 	if in.PageNum == 1 {
 		go model.UpdateUserPushUnread(in.UserId, in.UserType)
 	}