|
@@ -28,13 +28,8 @@ from Object.RedisObject import RedisObject
|
|
|
from Service.MiscellService import MiscellService
|
|
|
import datetime, simplejson as json
|
|
|
import time
|
|
|
-'''
|
|
|
-http://192.168.136.39:8000/dynamoDBLog/searchByAdmin?search_value=154390905041313800138000&token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VySUQiOiIxNTQzOTA5MDUwNDEzMTM4MDAxMzgwMDAiLCJsYW5nIjoiY24iLCJ1c2VyIjoiMTM4MDAxMzgwMDEiLCJtX2NvZGUiOiIxMjM0MTMyNDMyMTQiLCJleHAiOjE1NzMyNjc3OTR9.YWNEHKKrzFfEc4liz6N8ANQl8C1VfhhLv_MEOqf3yV4&page=1&line=12
|
|
|
|
|
|
|
|
|
-http://192.168.136.39:8000/dynamoDBLog/connector?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VySUQiOiIxNTQzOTA5MDUwNDEzMTM4MDAxMzgwMDAiLCJsYW5nIjoiY24iLCJ1c2VyIjoiMTM4MDAxMzgwMDEiLCJtX2NvZGUiOiIxMjM0MTMyNDMyMTQiLCJleHAiOjE1NzMyNjc3OTR9.YWNEHKKrzFfEc4liz6N8ANQl8C1VfhhLv_MEOqf3yV4
|
|
|
-
|
|
|
- '''
|
|
|
class DynamoDBLog(View):
|
|
|
@method_decorator(csrf_exempt)
|
|
|
def dispatch(self, *args, **kwargs):
|
|
@@ -77,7 +72,7 @@ class DynamoDBLog(View):
|
|
|
if search_value is None or search_value is '':
|
|
|
return response.json(0, {'datas': {}, 'count': 0})
|
|
|
else:
|
|
|
- if DOMAIN_HOST == 'www.dvema.com':
|
|
|
+ if DOMAIN_HOST == 'www.zositechc.cn':
|
|
|
user_brand = 'access_log'
|
|
|
else:
|
|
|
user_brand = 'test_access_log'
|
|
@@ -102,7 +97,7 @@ class DynamoDBLog(View):
|
|
|
def connector_info(self, request_dict, userID,response):
|
|
|
check_perm = ModelService.check_perm(userID=userID,permID=30)
|
|
|
if check_perm is True:
|
|
|
- if DOMAIN_HOST == 'www.dvema.com':
|
|
|
+ if DOMAIN_HOST == 'www.zositechc.cn':
|
|
|
user_brand = 'access_log'
|
|
|
else:
|
|
|
user_brand = 'test_access_log'
|
|
@@ -120,7 +115,7 @@ class DynamoDBLog(View):
|
|
|
# 通过传过来日期天来搜索,访问量,并返回对应小时的访问数量
|
|
|
def get_day_search(self, request_dict,userID, response):
|
|
|
check_perm = ModelService.check_perm(userID=userID, permID=30)
|
|
|
- if DOMAIN_HOST == 'www.dvema.com':
|
|
|
+ if DOMAIN_HOST == 'www.zositechc.cn':
|
|
|
user_brand = 'access_log'
|
|
|
else:
|
|
|
user_brand = 'test_access_log'
|