修复日计划工单
This commit is contained in:
@@ -281,7 +281,6 @@ class Manufacturing_Connect(http.Controller):
|
|||||||
logging.info('NCProgDolod error:%s' % e)
|
logging.info('NCProgDolod error:%s' % e)
|
||||||
return json.JSONEncoder().encode(res)
|
return json.JSONEncoder().encode(res)
|
||||||
|
|
||||||
|
|
||||||
@http.route('/AutoDeviceApi/LocationChange', type='json', auth='sf_token', methods=['GET', 'POST'], csrf=False,
|
@http.route('/AutoDeviceApi/LocationChange', type='json', auth='sf_token', methods=['GET', 'POST'], csrf=False,
|
||||||
cors="*")
|
cors="*")
|
||||||
def LocationChange(self, **kw):
|
def LocationChange(self, **kw):
|
||||||
@@ -344,7 +343,7 @@ class Manufacturing_Connect(http.Controller):
|
|||||||
"""
|
"""
|
||||||
logging.info('AGVDownProduct:%s' % kw)
|
logging.info('AGVDownProduct:%s' % kw)
|
||||||
try:
|
try:
|
||||||
res = {'Succeed': True, 'Datas': []}
|
res = {'Succeed': True}
|
||||||
datas = request.httprequest.data
|
datas = request.httprequest.data
|
||||||
ret = json.loads(datas)
|
ret = json.loads(datas)
|
||||||
if 'DeviceId' in ret:
|
if 'DeviceId' in ret:
|
||||||
@@ -361,4 +360,3 @@ class Manufacturing_Connect(http.Controller):
|
|||||||
res = {'Succeed': False, 'ErrorCode': 202, 'Error': e}
|
res = {'Succeed': False, 'ErrorCode': 202, 'Error': e}
|
||||||
logging.info('AGVDownProduct error:%s' % e)
|
logging.info('AGVDownProduct error:%s' % e)
|
||||||
return json.JSONEncoder().encode(res)
|
return json.JSONEncoder().encode(res)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user