Commit 3f8b4f92047e165ae2f518ea07f676b6b2ae4780

Authored by lixi
1 parent a283a5c3

更新进门称重的方法

Showing 1 changed file with 4 additions and 4 deletions
commons/basic/listCarType.py
... ... @@ -22,13 +22,13 @@ class listCarType():
22 22 self.market=market
23 23 self.url = listCarType.url.replace("http://test.", com.get_global_config("global_data", "environment", "en"))
24 24 self.header = listCarType.header
25   - self.header["UAP_accessToken"] = self.market .cookies["UAP_accessToken"]
26   - self.header["UAP_refreshToken"] = self.market .cookies["UAP_refreshToken"]
27   - self.header["UAP_firmId"] = self.market .cookies["UAP_firmId"]
  25 + self.header["UAP_accessToken"] = self.market.cookies["UAP_accessToken"]
  26 + self.header["UAP_refreshToken"] = self.market.cookies["UAP_refreshToken"]
  27 + self.header["UAP_firmId"] = self.market.cookies["UAP_firmId"]
28 28 self.header["Host"] = com.get_global_config("global_data", "host", "gateway")
29 29  
30 30 def car_list(self):
31   - re = self.market .post(url=self.url, headers=self.header,json=self.body)
  31 + re = self.market.post(url=self.url, headers=self.header,json=self.body)
32 32 return re.json()
33 33  
34 34 # tt=listCarType(sy1)
... ...