Bläddra i källkod

update hk服务期环境下载和放出兼容

lierqiang 2 år sedan
förälder
incheckning
6af327037e
1 ändrade filer med 6 tillägg och 0 borttagningar
  1. 6 0
      common/publish.py

+ 6 - 0
common/publish.py

@@ -329,6 +329,8 @@ class Publish:
                                 oss_video_file = cls.oss_file_path_video.format("dev", today, data['crawlerSrcId'])
                             elif env == "prod":
                                 oss_video_file = cls.oss_file_path_video.format("prod", today, data['crawlerSrcId'])
+                            elif env == "hk":
+                                oss_video_file = cls.oss_file_path_video.format("prod", today, data['crawlerSrcId'])
                             Common.logger(log_type, crawler).info("oss_video_file = {}".format(oss_video_file))
                             cls.put_file(log_type, crawler, oss_endpoint, oss_video_file, fi_path)
                             data['videoPath'] = oss_video_file
@@ -339,6 +341,8 @@ class Publish:
                                 oss_image_file = cls.oss_file_path_image.format("env", today, data['crawlerSrcId'])
                             elif env == "prod":
                                 oss_image_file = cls.oss_file_path_image.format("prod", today, data['crawlerSrcId'])
+                            elif env == "hk":
+                                oss_image_file = cls.oss_file_path_image.format("prod", today, data['crawlerSrcId'])
                             Common.logger(log_type, crawler).info("oss_image_file = {}".format(oss_image_file))
                             cls.put_file(log_type, crawler, oss_endpoint, oss_image_file, fi_path)
                             data['coverImgPath'] = oss_image_file
@@ -351,6 +355,8 @@ class Publish:
                         video_id = cls.publish_video_dev(log_type, crawler, data)
                     elif env == "prod":
                         video_id = cls.publish_video_prod(log_type, crawler, data)
+                    elif env == "hk":
+                        video_id = cls.publish_video_prod(log_type, crawler, data)
                     else:
                         video_id = cls.publish_video_dev(log_type, crawler, data)
                     cls.remove_local_file_dir(log_type, crawler, fi_d)