|
@@ -118,12 +118,14 @@ func (l *GetSubListLogic) GetSubList(in *bxsubscribe.SubscribeInfosReq) (*bxsubs
|
|
|
isRecommend := false
|
|
|
if in.PageNum == 1 && spqp.IsEmpty() && (len(list) == 0 || (in.PositionType == 0 && spqp.SubPushInactive == -1)) && in.IsEnt == false {
|
|
|
hasNextPage, total, list = model.NewSubscribePush(in.UserType).DefaultDatas(spqp, bsp, in.UserType)
|
|
|
- if len(list) == 0 {
|
|
|
- hasNextPage, total, list = model.NewSubscribePush(in.UserType).SubRecList(common.ObjToString(common.If(in.PositionType == 0, spqp.UserId, spqp.EntUserId)), bsp.Keyword)
|
|
|
- }
|
|
|
- if len(list) == 0 {
|
|
|
- isRecommend = true
|
|
|
- hasNextPage, total, list = model.NewSubscribePush(in.UserType).GetRecListByEs()
|
|
|
+ if in.Source == "home" {
|
|
|
+ if len(list) == 0 {
|
|
|
+ hasNextPage, total, list = model.NewSubscribePush(in.UserType).SubRecList(common.ObjToString(common.If(in.PositionType == 0, spqp.UserId, spqp.EntUserId)), bsp.Keyword)
|
|
|
+ }
|
|
|
+ if len(list) == 0 {
|
|
|
+ isRecommend = true
|
|
|
+ hasNextPage, total, list = model.NewSubscribePush(in.UserType).GetRecListByEs()
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|