Explorar o código

secrete->secret

locky %!s(int64=4) %!d(string=hai) anos
pai
achega
65768729df
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      Controller/DetectControllerV2.py

+ 3 - 1
Controller/DetectControllerV2.py

@@ -63,6 +63,8 @@ class DetectControllerViewV2(View):
 
     def validation(self, request_dict, operation):
         response = ResponseObject()
+        if operation == 'generateUIDToken':
+            return self.generateUIDToken(request_dict, response)
         if operation is None:
             return response.json(444, 'error path')
         token = request_dict.get('token', None)
@@ -102,7 +104,7 @@ class DetectControllerViewV2(View):
             return response.json(444, 'status')
         if not company_secrete:
             return response.json(444, 'company_secrete')
-        company = CompanyModel.objects.filter(secrete=company_secrete)
+        company = CompanyModel.objects.filter(secret=company_secrete)
         if not company.exists():
             return response.json(444, 'company_secrete')
         # 关闭推送