瀏覽代碼

Merge branch 'feature/v1.1.54_ws' of BaseService/jyMicroservices into feature/v1.1.54

wangshan 1 年之前
父節點
當前提交
298b7aa2f3
共有 2 個文件被更改,包括 3 次插入5 次删除
  1. 1 1
      jyBXCore/api/etc/bxcore-api.yaml
  2. 2 4
      jyBXCore/api/internal/logic/searchListLogic.go

+ 1 - 1
jyBXCore/api/etc/bxcore-api.yaml

@@ -17,7 +17,7 @@ Core:
 AppId: 10000
 MgoLogsName: jybxcore_logs
 MgoLogsCount: 500
-DetailMosaicTxt: 免费注册即可查看
+DetailMosaicTxt: 登录即可免费查看
 SearchMosaic:
   buyerPerson: true
   buyerTel: true

+ 2 - 4
jyBXCore/api/internal/logic/searchListLogic.go

@@ -10,7 +10,6 @@ import (
 	"github.com/zeromicro/go-zero/core/logx"
 	"log"
 	"net/http"
-	"regexp"
 	"strings"
 	"time"
 
@@ -41,7 +40,6 @@ func (l *SearchListLogic) SearchList(req *types.SearchReq) (resp *types.CommonRe
 	limitFlag, isNew := util.GetFlag(l.r, l.w, req.UserId)
 	var (
 		mobileTag []string
-		MobileReg = regexp.MustCompile("(?i)(Android|Mobile|Phone)")
 	)
 	//工作台内
 	if strings.Contains(l.r.Referer(), "/page_workDesktop/work-bench") {
@@ -105,8 +103,8 @@ func (l *SearchListLogic) SearchList(req *types.SearchReq) (resp *types.CommonRe
 			Data:     nil,
 		}, err
 	}
-	//移动端未登录
-	if req.UserId == "" && MobileReg.MatchString(l.r.UserAgent()) {
+	//未登录 且是 招标搜索(非bi 非医械通)
+	if req.UserId == "" && req.BidField == "" {
 		var data []map[string]interface{}
 		detailMosaicTxt := IC.C.DetailMosaicTxt
 		sm := common.StructToMapMore(IC.C.SearchMosaic)