|
@@ -8,6 +8,8 @@
|
|
"""
|
|
"""
|
|
import datetime
|
|
import datetime
|
|
import time
|
|
import time
|
|
|
|
+import logging
|
|
|
|
+
|
|
|
|
|
|
from django.db import transaction
|
|
from django.db import transaction
|
|
|
|
|
|
@@ -38,6 +40,8 @@ class SuperPasswordView(View):
|
|
tko = TokenObject(
|
|
tko = TokenObject(
|
|
request.META.get('HTTP_AUTHORIZATION'))
|
|
request.META.get('HTTP_AUTHORIZATION'))
|
|
lang = request_dict.get('lang', tko.lang)
|
|
lang = request_dict.get('lang', tko.lang)
|
|
|
|
+ logger = logging.getLogger('info')
|
|
|
|
+ logger.info("传参语言{}".format(lang))
|
|
response = ResponseObject(lang)
|
|
response = ResponseObject(lang)
|
|
if tko.code != 0:
|
|
if tko.code != 0:
|
|
return response.json(tko.code)
|
|
return response.json(tko.code)
|
|
@@ -197,7 +201,9 @@ 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:
|