Arthur-Wu committed this file on 2024-11-26
This commit is contained in:
@ -110,6 +110,28 @@ class YMServiceApi(object):
|
||||
logging.info(f"---接口返回状态码为:: {response.status_code}")
|
||||
logging.info(f"---接口返回体为:: {response.json()}\n\n")
|
||||
|
||||
def get_markets_of_this_cart(self):
|
||||
logging.info("========== [获取购物车的商超信息] ==========")
|
||||
url = self.Domain + "dmin/cart/list"
|
||||
payload = json.dumps({
|
||||
"page": 1,
|
||||
"limit": 10,
|
||||
"query": {
|
||||
"order": {
|
||||
"createdAt": "desc"
|
||||
},
|
||||
"where": {
|
||||
"mac": {
|
||||
"include": "b8:2d:28:04:c7:5c"
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
response = requests.request("POST", url, headers=self.headerss, data=payload)
|
||||
logging.info(f"-----------接口返回状态码:{response.status_code}")
|
||||
logging.info(f"-----------接口返回数据:{response.json()}\n\n")
|
||||
return response.json()
|
||||
|
||||
def update_the_store_to_which_the_shopping_cart_belongs(self, CartId, CartMac, NewStoreId):
|
||||
'''
|
||||
NewStoreInfo={
|
||||
|
Reference in New Issue
Block a user