Ver código fonte

修改并发数

zhangdongming 3 anos atrás
pai
commit
f6f9137c62
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      Controller/ShadowController.py

+ 1 - 0
Controller/ShadowController.py

@@ -58,6 +58,7 @@ def generate_utk(request):
 
 
 # 设备影子更新
+@ratelimit(key='ip', rate='100/1s', block=True)
 def update_device_shadow(request):
     request.encoding = 'utf-8'
     if request.method == 'POST':