Эх сурвалжийг харах

允许is_ts为3时,有多少张图片就处理多少张

peng 2 жил өмнө
parent
commit
a5c162104d

+ 2 - 1
Controller/FeedBack.py

@@ -361,7 +361,8 @@ class FeedBackView(View):
                                                                                    channel=channel,
                                                                                    event_time=event_time,
                                                                                    index=index)
-                    s3.copy_obj(PUSH_BUCKET, PUSH_INACCURATE_BUCKET, file_path)
+                    if s3.get_object(PUSH_BUCKET, file_path):
+                        s3.copy_obj(PUSH_BUCKET, PUSH_INACCURATE_BUCKET, file_path)
             PushInaccurateFeedback.objects.create(equipment_info_id=equipment_info_id, user_id=user_id,
                                                   event_type=event_type, uid=uid, channel=channel,
                                                   add_time=now_time, tag=tag, is_st=is_st, event_time=event_time)