فهرست منبع

关键词分类搜索

WH01243 2 سال پیش
والد
کامیت
b097cffd8a
1فایلهای تغییر یافته به همراه7 افزوده شده و 4 حذف شده
  1. 7 4
      jyBXSubscribe/api/internal/logic/subscribeListLogic.go

+ 7 - 4
jyBXSubscribe/api/internal/logic/subscribeListLogic.go

@@ -3,13 +3,13 @@ package logic
 import (
 	"app.yhyue.com/moapp/jybase/common"
 	"context"
+	"github.com/gogf/gf/v2/util/gconv"
+	"github.com/zeromicro/go-zero/core/logx"
 	"jyBXSubscribe/api/internal/svc"
 	"jyBXSubscribe/api/internal/types"
 	"jyBXSubscribe/rpc/type/bxsubscribe"
 	"net/http"
 	"strings"
-
-	"github.com/zeromicro/go-zero/core/logx"
 )
 
 type SubscribeListLogic struct {
@@ -38,10 +38,13 @@ func (l *SubscribeListLogic) SubscribeList(req *types.SubscribeReq) (resp *types
 	matchkeys := ""
 	if req.IsEnt {
 		for k, v := range req.Item {
-			if common.InterfaceToStr(v) == "" {
+			keyArr := gconv.Strings(v)
+			if len(keyArr) == 0 {
 				matchitemsArr = append(matchitemsArr, common.InterfaceToStr(k))
 			} else {
-				matchkeysArr = append(matchkeysArr, common.InterfaceToStr(v))
+				for _, s := range keyArr {
+					matchkeysArr = append(matchkeysArr, s)
+				}
 			}
 		}
 		if len(matchitemsArr) == 0 {