|
@@ -12,6 +12,7 @@
|
|
@Contact: chanjunkai@163.com
|
|
@Contact: chanjunkai@163.com
|
|
"""
|
|
"""
|
|
import json
|
|
import json
|
|
|
|
+import logging
|
|
import time
|
|
import time
|
|
import urllib
|
|
import urllib
|
|
import uuid
|
|
import uuid
|
|
@@ -123,7 +124,8 @@ class CDKView(View):
|
|
searchVal = order.strip()
|
|
searchVal = order.strip()
|
|
elif is_activate:
|
|
elif is_activate:
|
|
searchVal = is_activate.strip()
|
|
searchVal = is_activate.strip()
|
|
-
|
|
|
|
|
|
+ logger = logging.getLogger('info')
|
|
|
|
+ logger.info('CDK测试打印1: {}'.format(time.localtime(time.time())))
|
|
if page and line:
|
|
if page and line:
|
|
cdk_qs = CDKcontextModel.objects.filter().all() # values('cdk','create_time','valid_time','is_activate','rank__id','order__id')
|
|
cdk_qs = CDKcontextModel.objects.filter().all() # values('cdk','create_time','valid_time','is_activate','rank__id','order__id')
|
|
if searchVal:
|
|
if searchVal:
|
|
@@ -153,6 +155,7 @@ class CDKView(View):
|
|
'datas': list(cdk_qs),
|
|
'datas': list(cdk_qs),
|
|
'count': count
|
|
'count': count
|
|
}
|
|
}
|
|
|
|
+ logger.info('CDK测试打印2: {}'.format(time.localtime(time.time())))
|
|
return response.json(0, res)
|
|
return response.json(0, res)
|
|
else:
|
|
else:
|
|
return response.json(444, 'page,line')
|
|
return response.json(444, 'page,line')
|