zhangyong 1 year ago
parent
commit
1af9ba91c5
1 changed files with 3 additions and 2 deletions
  1. 3 2
      video_stitching/video_stitching.py

+ 3 - 2
video_stitching/video_stitching.py

@@ -95,7 +95,8 @@ class VideoStitching():
         return id
 
     @classmethod
-    def get_account_id(cls, channel_type):
+    def get_account_id(cls):
+        channel_type = "koubo"
         account_id = f"""select account_id from video_url where oss_object_key LIKE '%{channel_type}%' group by account_id ;"""
         account_id = MysqlHelper.get_values(account_id, "prod")
         return account_id
@@ -359,7 +360,7 @@ class VideoStitching():
                 return
         else:
             # 获取已入库的用户id
-            account_id = cls.get_account_id(channel_type)
+            account_id = cls.get_account_id()
             account = random.choice(account_id)
             account = str(account).replace('(', '').replace(')', '').replace(',', '')
             Common.logger("video").info(f"获取用户ID:{account}")