瀏覽代碼

删除多余参数

locky 1 年之前
父節點
當前提交
0ae6aca28a
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2 3
      Controller/DetectControllerV2.py

+ 2 - 3
Controller/DetectControllerV2.py

@@ -132,8 +132,7 @@ class NotificationV2View(View):
                 kwargs=params)
             push_thread.start()
 
-            params['aws_s3_client'] = aws_s3_client
-
+            # 获取S3对象上传链接
             kwargs = {
                 'is_st': is_st,
                 'uid': uid,
@@ -142,7 +141,7 @@ class NotificationV2View(View):
                 'region': region,
                 'aws_s3_client': aws_s3_client
             }
-            result_dict = DevicePushService.get_push_url(**kwargs)  # 获取S3对象上传链接
+            result_dict = DevicePushService.get_push_url(**kwargs)
 
             TIME_LOGGER.info('推送响应,uid:{},n_time:{},事件类型:{},响应:{}'.format(
                 uid, n_time, event_type, json.dumps(result_dict)))