中控对接接口优化
This commit is contained in:
@@ -180,7 +180,7 @@ class FunctionalCuttingToolEntity(models.Model):
|
||||
|
||||
# ==========刀具组接口==========
|
||||
def _register_functional_tool_groups(self, obj):
|
||||
create_url = '/AutoDeviceApi/ToolGroups'
|
||||
create_url = '/AutoDeviceApi/ToolGroup'
|
||||
sf_sync_config = self.env['res.config.settings'].get_values()
|
||||
token = sf_sync_config['token']
|
||||
sf_secret_key = sf_sync_config['sf_secret_key']
|
||||
|
||||
@@ -11,7 +11,7 @@ class CNCprocessing(models.Model):
|
||||
|
||||
# ==========MES装刀指令接口==========
|
||||
def register_cnc_processing(self, cnc_processing):
|
||||
create_url = '/AutoDeviceApi/MESToolLoadingInstruction'
|
||||
create_url = '/AutoDeviceApi/ToolLoadInstruct'
|
||||
sf_sync_config = self.env['res.config.settings'].get_values()
|
||||
token = sf_sync_config['token']
|
||||
sf_secret_key = sf_sync_config['sf_secret_key']
|
||||
|
||||
Reference in New Issue
Block a user