wangchuanjin 11 месяцев назад
Родитель
Сommit
5684aeefa9
1 измененных файлов с 5 добавлено и 4 удалено
  1. 5 4
      jyBXSubscribe/rpc/internal/logic/bidreclistlogic.go

+ 5 - 4
jyBXSubscribe/rpc/internal/logic/bidreclistlogic.go

@@ -1,11 +1,12 @@
 package logic
 
 import (
+	"context"
+
 	"app.yhyue.com/moapp/jybase/common"
 	"bp.jydev.jianyu360.cn/BaseService/jyMicroservices/jyBXSubscribe/rpc/internal/svc"
 	"bp.jydev.jianyu360.cn/BaseService/jyMicroservices/jyBXSubscribe/rpc/model"
 	"bp.jydev.jianyu360.cn/BaseService/jyMicroservices/jyBXSubscribe/rpc/type/bxsubscribe"
-	"context"
 
 	"github.com/zeromicro/go-zero/core/logx"
 )
@@ -28,9 +29,9 @@ func NewBidRecListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *BidRec
 func (l *BidRecListLogic) BidRecList(in *bxsubscribe.BidRecListReq) (*bxsubscribe.SubscribeInfosResp, error) {
 	var list []*bxsubscribe.SubscribeInfo
 	hasNextPage, total, list := model.NewSubscribePush("").SubRecList(common.ObjToString(common.If(in.PositionType == 0, in.UserId, in.EntUserId)), []model.ViewKeyWord{})
-	//if len(list) == 0 && in.SPath == "1" { // 订阅更多
-	//	hasNextPage, total, list = model.NewSubscribePush("").GetRecListByEs()
-	//}
+	if len(list) == 0 { // 订阅更多
+		hasNextPage, total, list = model.NewSubscribePush("").GetRecListByEs()
+	}
 	return &bxsubscribe.SubscribeInfosResp{
 		ErrCode: 0,
 		ErrMsg:  "",