|
@@ -111,6 +111,39 @@ class APIMgr():
|
|
response = session.post(f"{cfg.target_host}/jylab/supsearch/index.html", headers=headers, params=params)
|
|
response = session.post(f"{cfg.target_host}/jylab/supsearch/index.html", headers=headers, params=params)
|
|
self.printResponse(response)
|
|
self.printResponse(response)
|
|
return response
|
|
return response
|
|
|
|
+ #超前项目搜索
|
|
|
|
+ def advanced_search(self):
|
|
|
|
+ #使用全局变量
|
|
|
|
+ headers = GSTORE['headers']
|
|
|
|
+ #保存session
|
|
|
|
+ session = self.s
|
|
|
|
+ data={
|
|
|
|
+ "searchGroup": 2,
|
|
|
|
+ "reqType": "lastNews",
|
|
|
|
+ "pageNum": 1,
|
|
|
|
+ "pageSize": 50,
|
|
|
|
+ "keyWords": "",
|
|
|
|
+ "searchMode": 0,
|
|
|
|
+ "bidField": "",
|
|
|
|
+ "publishTime": "1689573022-1721195422",
|
|
|
|
+ "selectType": "title,content",
|
|
|
|
+ "subtype": "",
|
|
|
|
+ "exclusionWords": "",
|
|
|
|
+ "buyer": "",
|
|
|
|
+ "winner": "",
|
|
|
|
+ "agency": "",
|
|
|
|
+ "industry": "",
|
|
|
|
+ "province": "",
|
|
|
|
+ "city": "",
|
|
|
|
+ "district": "",
|
|
|
|
+ "buyerClass": "",
|
|
|
|
+ "fileExists": "",
|
|
|
|
+ "price": "",
|
|
|
|
+ "buyerTel": "",
|
|
|
|
+ "winnerTel": ""
|
|
|
|
+ }
|
|
|
|
+ response = session.post(f"{cfg.target_host}/jyapi/jybx/core/fType/searchList", headers=headers, json=data)
|
|
|
|
+ return response
|
|
|
|
|
|
# 企业搜索
|
|
# 企业搜索
|
|
def enterpriseSearch(self, match="北京剑鱼信息技术有限公司河南分公司", matchType="A", pageSize="10", pageNum="0"):
|
|
def enterpriseSearch(self, match="北京剑鱼信息技术有限公司河南分公司", matchType="A", pageSize="10", pageNum="0"):
|
|
@@ -127,7 +160,7 @@ class APIMgr():
|
|
self.printResponse(response)
|
|
self.printResponse(response)
|
|
return response
|
|
return response
|
|
|
|
|
|
- # 供应搜索
|
|
|
|
|
|
+ # 供应搜索
|
|
def supplySearch(self, keywords="PH计", searchType="title", province="", city="", time="", status="0",
|
|
def supplySearch(self, keywords="PH计", searchType="title", province="", city="", time="", status="0",
|
|
pageSize=50, pageIndex=1):
|
|
pageSize=50, pageIndex=1):
|
|
headers = GSTORE['headers']
|
|
headers = GSTORE['headers']
|
|
@@ -273,6 +306,12 @@ class APIMgr():
|
|
}
|
|
}
|
|
response = s.post(f"{cfg.target_host}/bigmember/follow/project/cancel", headers=headers, params=params)
|
|
response = s.post(f"{cfg.target_host}/bigmember/follow/project/cancel", headers=headers, params=params)
|
|
return response
|
|
return response
|
|
|
|
+ """用户信息获取isadd接口"""
|
|
|
|
+ def isadd(self):
|
|
|
|
+ headers = GSTORE['headers']
|
|
|
|
+ s = GSTORE["s"]
|
|
|
|
+ response = s.get(f"{cfg.target_host}/bigmember/use/isAdd", headers=headers)
|
|
|
|
+ return response
|
|
|
|
|
|
#接口数据传值常用三种方式:urlencoded---params,键值对---data,json格式---json
|
|
#接口数据传值常用三种方式:urlencoded---params,键值对---data,json格式---json
|
|
#获取推送记录接口
|
|
#获取推送记录接口
|