diff --git a/apps/system/services.py b/apps/system/services.py index 42db914a..61ac3aaf 100644 --- a/apps/system/services.py +++ b/apps/system/services.py @@ -1,11 +1,11 @@ from apps.system.models import Dept from django.conf import settings from apps.third.tapis import dhapis +from apps.third.dahua import dhClient def sync_dahua_dept(dept: Dept): # 同步大华部门信息 - from apps.third.clients import dhClient third_info = dept.third_info if settings.DAHUA_ENABLED and not third_info.get('dh_id', False): # 如果dh_id 不存在 diff --git a/apps/third/tasks.py b/apps/third/tasks.py index 45e9c0ae..a1874ffe 100644 --- a/apps/third/tasks.py +++ b/apps/third/tasks.py @@ -5,7 +5,9 @@ from apps.utils.tasks import CustomTask from apps.third.models import Tlog from celery import shared_task from django.utils import timezone -from apps.third.clients import xxClient, dhClient, spClient +from apps.third.dahua import dhClient +from apps.third.xunxi import xxClient +from apps.third.speaker import spClient @shared_task(base=CustomTask)