Explorar o código

Revert "限制设备影子更新接口ip访问频率"

This reverts commit 8561be60
locky %!s(int64=3) %!d(string=hai) anos
pai
achega
f00dbb9b3e
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      Controller/ShadowController.py

+ 1 - 2
Controller/ShadowController.py

@@ -21,7 +21,7 @@ import time
 
 import requests
 from django.http import JsonResponse
-from ratelimit.decorators import ratelimit
+
 from AnsjerPush.config import SERVER_TYPE
 from Model.models import Device_Info, UidSetModel, UID_Preview, VoicePromptModel, UID_Bucket, UidChannelSetModel, \
     AiService
@@ -57,7 +57,6 @@ def generate_utk(request):
 
 
 # 设备影子更新
-@ratelimit(key='ip', rate='1/1d', block=True)
 def update_device_shadow(request):
     request.encoding = 'utf-8'
     response = ResponseObject()