Commit 3f8b4f92047e165ae2f518ea07f676b6b2ae4780
1 parent
a283a5c3
更新进门称重的方法
Showing
1 changed file
with
4 additions
and
4 deletions
commons/basic/listCarType.py
@@ -22,13 +22,13 @@ class listCarType(): | @@ -22,13 +22,13 @@ class listCarType(): | ||
22 | self.market=market | 22 | self.market=market |
23 | self.url = listCarType.url.replace("http://test.", com.get_global_config("global_data", "environment", "en")) | 23 | self.url = listCarType.url.replace("http://test.", com.get_global_config("global_data", "environment", "en")) |
24 | self.header = listCarType.header | 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 | self.header["Host"] = com.get_global_config("global_data", "host", "gateway") | 28 | self.header["Host"] = com.get_global_config("global_data", "host", "gateway") |
29 | 29 | ||
30 | def car_list(self): | 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 | return re.json() | 32 | return re.json() |
33 | 33 | ||
34 | # tt=listCarType(sy1) | 34 | # tt=listCarType(sy1) |