Explorar o código

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

guanhailong %!s(int64=2) %!d(string=hai) anos
pai
achega
d11b043771
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      Controller/SuperPasswordTool.py

+ 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: