喇叭播放日志打开

This commit is contained in:
曹前明 2022-09-11 18:29:46 +08:00
parent 4d854c2922
commit 124c7f3086
2 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,5 @@
from apps.ecm.service import check_not_in_place
from apps.ecm.tasks import opl_task
from apps.opm.models import Operation, Opl, OplWorker
from apps.third.models import TDevice
@ -84,6 +85,9 @@ def opl_start(ticket: Ticket):
op.state = Operation.OP_WORK
op.save()
# 检查作业人员是否就位
check_not_in_place(opl)
# 给摄像头加载循环拍照算法
# 找到作业点的摄像头, 如果指定摄像头就用指定的摄像头
if op.vchannels:

View File

@ -109,7 +109,7 @@ class SpClient:
if raise_exception:
raise ParseError(**err_detail)
return 'fail', dict(detail=detail, code='sp_'+str(ret['code']))
# self.handle_log(result='success', response=ret)
self.handle_log(result='success', response=ret)
return 'success', ret
self.handle_log(result='error', errors=traceback.format_exc())
if raise_exception: