Commit 924abac6225eedde10880f53ec2f42de0d003d8a

Authored by lixi
1 parent d6e9de52

1

Showing 1 changed file with 3 additions and 3 deletions
commons/MySession.py
... ... @@ -173,11 +173,11 @@ class mysession(requests.Session):
173 173 #处理header
174 174 if "UAP_accessToken" in kwargs["headers"].keys():
175 175 kwargs["headers"]["UAP_accessToken"] = self.re.json()["data"]["accessToken"]
176   - elif "UAP_refreshToken" in kwargs["headers"].keys():
  176 + if "UAP_refreshToken" in kwargs["headers"].keys():
177 177 kwargs["headers"]["UAP_refreshToken"] = self.re.json()["data"]["refreshToken"]
178   - elif "UAP_firmId" in kwargs["headers"].keys():
  178 + if "UAP_firmId" in kwargs["headers"].keys():
179 179 kwargs["headers"]["UAP_firmId"] = self.re.json()["data"]["user"]["firmId"]
180   - elif "Host" in kwargs["headers"].keys():
  180 + if "Host" in kwargs["headers"].keys():
181 181 kwargs["headers"]["Host"]=host
182 182 log.info("{}\n{}\n".format(url, kwargs))
183 183 # 进行请求
... ...