Jianghan há 1 ano atrás
pai
commit
53a1f4d49c

+ 3 - 4
jyBXSubscribe/rpc/bxsubscribe.go

@@ -7,16 +7,15 @@ import (
 	logrusx "app.yhyue.com/moapp/jylogx/logx"
 	"flag"
 	"fmt"
+	"github.com/gogf/gf/v2/frame/g"
+	"github.com/gogf/gf/v2/os/gcfg"
+	"github.com/zeromicro/go-zero/core/conf"
 	IC "jyBXSubscribe/rpc/init"
 	"jyBXSubscribe/rpc/internal/server"
 	"jyBXSubscribe/rpc/internal/svc"
 	"jyBXSubscribe/rpc/type/bxsubscribe"
 	"log"
 
-	"github.com/gogf/gf/v2/frame/g"
-	"github.com/gogf/gf/v2/os/gcfg"
-	"github.com/zeromicro/go-zero/core/conf"
-
 	"github.com/zeromicro/go-zero/core/logx"
 	"github.com/zeromicro/go-zero/core/service"
 	"github.com/zeromicro/go-zero/zrpc"

+ 1 - 0
jyBXSubscribe/rpc/internal/logic/getsublistlogic.go

@@ -120,6 +120,7 @@ func (l *GetSubListLogic) GetSubList(in *bxsubscribe.SubscribeInfosReq) (*bxsubs
 		hasNextPage, total, list = model.NewSubscribePush(in.UserType).DefaultDatas(spqp, bsp, in.UserType)
 		if in.Stag == "home" {
 			if len(list) == 0 {
+				isRecommend = true
 				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 {