Эх сурвалжийг харах

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

guanhailong 2 жил өмнө
parent
commit
d11b043771

+ 1 - 3
Controller/SuperPasswordTool.py

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