|
@@ -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)
|