1、库位变更接口、库位信息接口优化;2、功能刀具预警模型优化;
This commit is contained in:
@@ -507,13 +507,13 @@ class ShelfLocation(models.Model):
|
||||
print('eeeeeee空闲', e)
|
||||
|
||||
# 调取获取货位信息接口
|
||||
def get_sf_shelf_location_info(self):
|
||||
def get_sf_shelf_location_info(self, device_id='Cabinet-AL'):
|
||||
|
||||
config = self.env['res.config.settings'].get_values()
|
||||
headers = {'Authorization': config['center_control_Authorization']}
|
||||
crea_url = config['center_control_url'] + "/AutoDeviceApi/GetLocationInfos"
|
||||
|
||||
params = {'DeviceId': 'Cabinet-AL'}
|
||||
params = {'DeviceId': device_id}
|
||||
r = requests.get(crea_url, params=params, headers=headers)
|
||||
|
||||
ret = r.json()
|
||||
|
||||
Reference in New Issue
Block a user