Jelajahi Sumber

修改推送图片服务器

peng 2 tahun lalu
induk
melakukan
a43fbc4b91

+ 1 - 1
Controller/DetectController.py

@@ -132,7 +132,7 @@ class NotificationView(View):
                 }
                 params = {'nickname': nickname, 'uid': uid, 'kwag_args': kwag_args, 'is_st': is_st,
                           'is_sys_msg': is_sys_msg, 'channel': channel, 'event_type': event_type, 'n_time': n_time,
-                          'electricity': '', 'bucket': bucket, 'app_push': ''}
+                          'electricity': '', 'bucket': bucket, 'app_push': '', 'storage_location': 1}
                 #  推送以及报警消息存库
                 result = DevicePushService.save_msg_push(uid_set_push_list=uid_push_list, **params)
                 if result['code_date'] is None:

+ 1 - 1
Controller/DetectControllerV2.py

@@ -114,7 +114,7 @@ class NotificationV2View(View):
                 params = {'nickname': nickname, 'uid': uid, 'kwag_args': kwag_args, 'is_st': is_st, 'region': region,
                           'is_sys_msg': is_sys_msg, 'channel': channel, 'event_type': event_type, 'n_time': n_time,
                           'electricity': electricity, 'bucket': bucket, 'aws_s3_client': aws_s3_client,
-                          'app_push': cache_app_push}
+                          'app_push': cache_app_push, 'storage_location': 2}
                 # APP消息推送与获取报警消息数据列表
                 result = DevicePushService.save_msg_push(uid_set_push_list, **params)
                 # 批量系统消息&报警消息数据存库

+ 1 - 1
Service/DevicePushService.py

@@ -239,7 +239,7 @@ class DevicePushService:
             is_st=params['is_st'],
             receive_time=params['n_time'],
             add_time=int(time.time()),
-            storage_location=2,
+            storage_location=params['storage_location'],
             border_coords='',
         )