|
@@ -55,7 +55,7 @@ class APIMgr():
|
|
|
s = requests.Session()
|
|
|
GSTORE['s'] = s
|
|
|
#pc登录接口
|
|
|
- def mgr_login(self, phone='18211989987', password='123456',useproxies=False):
|
|
|
+ def mgr_login(self, phone='18211989987', password='#80Z!RVv52',useproxies=False):
|
|
|
headers=GSTORE['headers']
|
|
|
s = GSTORE['s']
|
|
|
if useproxies:
|
|
@@ -67,12 +67,11 @@ class APIMgr():
|
|
|
'phone':phone,
|
|
|
'password':password
|
|
|
})
|
|
|
- self.printResponse(response)
|
|
|
# 把response对象返回出去
|
|
|
return response
|
|
|
|
|
|
# app登录接口
|
|
|
- def mgr_login_app(self, phone='18211989987', password='123456',useproxies=False):
|
|
|
+ def mgr_login_app(self, phone='18211989987', password='#80Z!RVv52',useproxies=False):
|
|
|
headers=GSTORE['headers']
|
|
|
s = GSTORE['s']
|
|
|
if useproxies:
|
|
@@ -88,7 +87,6 @@ class APIMgr():
|
|
|
'channel': '',
|
|
|
'deviceId': ''
|
|
|
})
|
|
|
- self.printResponse(response)
|
|
|
# 把response对象返回出去
|
|
|
return response
|
|
|
"""退出登录pc"""
|
|
@@ -97,7 +95,6 @@ class APIMgr():
|
|
|
headers = GSTORE['headers']
|
|
|
s = GSTORE['s']
|
|
|
s.post(url=url, headers=headers)
|
|
|
- # self.printResponse(res)
|
|
|
# return res
|
|
|
|
|
|
"""退出登录app"""
|
|
@@ -114,7 +111,6 @@ class APIMgr():
|
|
|
#保存session
|
|
|
session = self.s
|
|
|
response = session.post(f"{cfg.target_host}/jylab/supsearch/index.html", headers=headers, params=params)
|
|
|
- self.printResponse(response)
|
|
|
return response
|
|
|
#超前项目搜索
|
|
|
def advanced_search(self):
|
|
@@ -162,7 +158,6 @@ class APIMgr():
|
|
|
'pageSize': pageSize,
|
|
|
'pageNum': pageNum
|
|
|
})
|
|
|
- self.printResponse(response)
|
|
|
return response
|
|
|
|
|
|
# 供应搜索
|
|
@@ -183,7 +178,6 @@ class APIMgr():
|
|
|
}
|
|
|
session=self.s
|
|
|
response = session.post(url=url, headers=headers, data=json.dumps(data))
|
|
|
- self.printResponse(response)
|
|
|
return response
|
|
|
|
|
|
#采购单位搜索
|
|
@@ -208,7 +202,6 @@ class APIMgr():
|
|
|
"pageNum":pageNum
|
|
|
}
|
|
|
response = requests.post(url=url, json=data, headers=self.headers)
|
|
|
- self.printResponse(response)
|
|
|
return response
|
|
|
|
|
|
#融创用户搜索
|
|
@@ -253,7 +246,6 @@ class APIMgr():
|
|
|
|
|
|
session = self.s
|
|
|
response = session.post(url=url, headers=headers, params=params)
|
|
|
- self.printResponse(response)
|
|
|
return response
|
|
|
|
|
|
"""三级页公告摘要"""
|
|
@@ -567,7 +559,7 @@ class APIMgr():
|
|
|
headers = GSTORE['headers']
|
|
|
s = GSTORE['s']
|
|
|
params = {
|
|
|
- "password": "123456"
|
|
|
+ "password": "#80Z!RVv52"
|
|
|
}
|
|
|
response = s.post(f"{cfg.target_host}/publicapply/password/check", headers=headers, params=params)
|
|
|
return response
|