Sfoglia il codice sorgente

排查数据传输问题(post请求)

guanhailong 2 anni fa
parent
commit
d11b043771
1 ha cambiato i file con 1 aggiunte e 3 eliminazioni
  1. 1 3
      Controller/SuperPasswordTool.py

+ 1 - 3
Controller/SuperPasswordTool.py

@@ -33,7 +33,7 @@ class SuperPasswordView(View):
     def post(self, request, *args, **kwargs):
     def post(self, request, *args, **kwargs):
         request.encoding = 'utf-8'
         request.encoding = 'utf-8'
         operation = kwargs.get('operation')
         operation = kwargs.get('operation')
-        request_dict = request.GET
+        request_dict = request.POST
         return self.validation(request_dict, request, operation)
         return self.validation(request_dict, request, operation)
 
 
     def validation(self, request_dict, request, operation):
     def validation(self, request_dict, request, operation):
@@ -201,9 +201,7 @@ class SuperPasswordView(View):
         @param authcode:验证码
         @param authcode:验证码
         @return:
         @return:
         """
         """
-        logger = logging.getLogger('info')
         authcode = request_dict.get('authcode', None)
         authcode = request_dict.get('authcode', None)
-        logger.info("----查询状态打印authcode{}".format(authcode))
         if authcode:
         if authcode:
             authcode = CommonService.decode_data(authcode)
             authcode = CommonService.decode_data(authcode)
             if not len(authcode) == 6:
             if not len(authcode) == 6: