|
@@ -3,12 +3,12 @@ package logic
|
|
|
import (
|
|
|
"app.yhyue.com/moapp/jybase/common"
|
|
|
"context"
|
|
|
+ "github.com/zeromicro/go-zero/core/logx"
|
|
|
"jyBXBase/rpc/bxbase"
|
|
|
IC "jyBXBase/rpc/init"
|
|
|
"jyBXBase/rpc/internal/svc"
|
|
|
"log"
|
|
|
-
|
|
|
- "github.com/zeromicro/go-zero/core/logx"
|
|
|
+ "strings"
|
|
|
)
|
|
|
|
|
|
type ShowSearchLogic struct {
|
|
@@ -68,9 +68,9 @@ func (l *ShowSearchLogic) ShowSearch(in *bxbase.ShowSearchReq) (res *bxbase.Show
|
|
|
listSearch.Notkey = common.InterfaceToStr(vlu["not_key"])
|
|
|
listSearch.Tabularflag = common.InterfaceToStr(vlu["tabular_flag"])
|
|
|
//ppa,buyer,winner,agency
|
|
|
- if (listSearch.SelectType != "title,content" && listSearch.SelectType != "title" && listSearch.SelectType != "content" && listSearch.SelectType != "content,title") ||
|
|
|
+ if SelectCheck(listSearch.SelectType) || listSearch.City != "" || listSearch.Notkey != "" ||
|
|
|
(listSearch.Publishtime != "lately-7" && listSearch.Publishtime != "lately-30" && listSearch.Publishtime != "thisyear") ||
|
|
|
- listSearch.City != "" || listSearch.Notkey != "" || listSearch.Winnertel != "" || listSearch.Buyertel != "" || listSearch.Buyerclass != "" {
|
|
|
+ listSearch.Winnertel != "" || listSearch.Buyertel != "" || listSearch.Buyerclass != "" {
|
|
|
listSearch.IsPay = true
|
|
|
}
|
|
|
data = append(data, &listSearch)
|
|
@@ -79,3 +79,13 @@ func (l *ShowSearchLogic) ShowSearch(in *bxbase.ShowSearchReq) (res *bxbase.Show
|
|
|
res.Data = data
|
|
|
return res, nil
|
|
|
}
|
|
|
+
|
|
|
+func SelectCheck(v string) bool {
|
|
|
+ vs := strings.Split(v, ",")
|
|
|
+ for _, v1 := range vs {
|
|
|
+ if v1 != "content" && v1 != "file" && v1 != "title" {
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return false
|
|
|
+}
|