Browse Source

请求头修改

lizhikun 1 year ago
parent
commit
2792f6d528
1 changed files with 2 additions and 4 deletions
  1. 2 4
      lib/webapi.py

+ 2 - 4
lib/webapi.py

@@ -47,7 +47,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='19937989931', password='123456',useproxies=False):
         headers=GSTORE['headers']
         s = GSTORE['s']
         if useproxies:
@@ -64,7 +64,7 @@ class APIMgr():
         return response
 
     # app登录接口
-    def mgr_login_app(self, phone='18211989987', password='123456',useproxies=False):
+    def mgr_login_app(self, phone='19937989931', password='123456',useproxies=False):
         headers=GSTORE['headers']
         s = GSTORE['s']
         if useproxies:
@@ -415,8 +415,6 @@ class APIMgr():
         s = GSTORE["s"]
         response =s.get(f"{cfg.target_host}/entnicheNew/buy/whetherbuy",headers=headers)
         return response
-
-
 apimgr = APIMgr()