|
@@ -127,8 +127,9 @@ class APIMgr():
|
|
|
self.printResponse(response)
|
|
|
return response
|
|
|
|
|
|
- # 供应搜索
|
|
|
- def supplySearch(self, keywords="PH计", searchType="title", province="", city="", time="", status="0",pageSize=50, pageIndex=1):
|
|
|
+ # 供应搜索
|
|
|
+ def supplySearch(self, keywords="PH计", searchType="title", province="", city="", time="", status="0",
|
|
|
+ pageSize=50, pageIndex=1):
|
|
|
headers = GSTORE['headers']
|
|
|
headers['Content-Type'] = 'application/json' # 添加Content-Type头部
|
|
|
url = f"{cfg.target_host}/jyinfo/supplySearch"
|
|
@@ -148,7 +149,8 @@ class APIMgr():
|
|
|
return response
|
|
|
|
|
|
#采购单位搜索
|
|
|
- def buyersousuo(self, buyerName, province=None, city=None, buyerClass=None, isCheckFollow=True, isCheckReceive=True,isContact=0, pageSize=10, pageNum=1):
|
|
|
+ def buyersousuo(self, buyerName, province=None, city=None, buyerClass=None, isCheckFollow=True, isCheckReceive=True,
|
|
|
+ isContact=0, pageSize=10, pageNum=1):
|
|
|
if buyerClass is None:
|
|
|
buyerClass = []
|
|
|
if city is None:
|
|
@@ -497,12 +499,12 @@ class APIMgr():
|
|
|
return response
|
|
|
|
|
|
def Identity_switch(self):
|
|
|
- headers = GSTORE["headers"]
|
|
|
+ headers = GSTORE['headers']
|
|
|
s = GSTORE["s"]
|
|
|
params = {
|
|
|
"token":self.token
|
|
|
- }
|
|
|
- response =s.post(f"{cfg.target_host}/publicapply/identity/switch", headers=self.headers,params=params)
|
|
|
+ }
|
|
|
+ response =s.post(f"{cfg.target_host}/publicapply/identity/switch", headers=headers, params=params)
|
|
|
return response
|
|
|
def User_info(self):
|
|
|
headers = {
|
|
@@ -514,6 +516,7 @@ class APIMgr():
|
|
|
params = {}
|
|
|
response =s.post(f"{cfg.target_host}/userCenter/ent/userInfo",headers=headers,params=params)
|
|
|
return response
|
|
|
+
|
|
|
def Whether_buy(self):
|
|
|
headers = GSTORE["headers"]
|
|
|
s = GSTORE["s"]
|