|
@@ -6,6 +6,7 @@ import time
|
|
|
|
|
|
from django.views import View
|
|
from django.views import View
|
|
|
|
|
|
|
|
+from AnsjerPush.config import LOGGER
|
|
from Object.RedisObject import RedisObject
|
|
from Object.RedisObject import RedisObject
|
|
from Object.ResponseObject import ResponseObject
|
|
from Object.ResponseObject import ResponseObject
|
|
from Model.models import AbnormalEvent
|
|
from Model.models import AbnormalEvent
|
|
@@ -30,6 +31,7 @@ class ReportView(View):
|
|
|
|
|
|
@staticmethod
|
|
@staticmethod
|
|
def abnormal_event(request_dict, response):
|
|
def abnormal_event(request_dict, response):
|
|
|
|
+ LOGGER.info('上报异常事件参数:{}'.format(request_dict))
|
|
uid = request_dict.get('uid')
|
|
uid = request_dict.get('uid')
|
|
device_type = request_dict.get('device_type')
|
|
device_type = request_dict.get('device_type')
|
|
version = request_dict.get('version')
|
|
version = request_dict.get('version')
|