Browse Source

复位不再进入复位列表

locky 1 year ago
parent
commit
b257f26437
1 changed files with 1 additions and 6 deletions
  1. 1 6
      Controller/ShadowController.py

+ 1 - 6
Controller/ShadowController.py

@@ -6,7 +6,7 @@ import requests
 from django.http import JsonResponse
 
 from AnsjerPush.config import CONFIG_INFO, CONFIG_US
-from Model.models import Device_Info, UidSetModel, UID_Preview, VoicePromptModel, UID_Bucket, UidChannelSetModel, \
+from Model.models import Device_Info, UidSetModel, UID_Preview, VoicePromptModel, UidChannelSetModel, \
     AiService, CountryModel
 from Object.ETkObject import ETkObject
 from Object.ResponseObject import ResponseObject
@@ -90,11 +90,6 @@ def update_device_shadow(request):
                                       voice_start_x=0, voice_start_y=18, voice_end_x=44, voice_end_y=18,
                                       voice_direction=0)
 
-            # 购买云存套餐的设备isExist置为2
-            uid_bucket = UID_Bucket.objects.filter(uid=uid, endTime__gte=nowTime).values('id', 'has_unused').order_by(
-                'addTime')
-            if not uid_bucket.exists():
-                Device_Info.objects.filter(UID=uid).update(isExist=2, vodPrimaryUserID='', vodPrimaryMaster='')
             # 删除预览图
             uid_pre_qs = UID_Preview.objects.filter(uid=uid)
             if uid_pre_qs.exists():