丁云鹏 3 months ago
parent
commit
b7a6a96088

+ 1 - 1
flowpool_data_update_with_level_supply_v2.py

@@ -23,7 +23,7 @@ def get_videos_from_flow_pool(app_type, size=1000):
     :return: videos  [{'videoId': 1111, 'flowPool': ''}, ...]
     """
     # 获取批次标识,利用首次获取数据时间戳为标记
-    batch_flag = int(time.time())
+    batch_flag = int(time.time() * 1000 + 333)
     log_.info(f"batch_flag: {batch_flag}")
 
     request_data = {'appType': app_type, 'batchFlag': batch_flag, 'size': size, 'isSupply': 1}

+ 2 - 2
flowpool_data_update_with_level_v2.py

@@ -1,7 +1,7 @@
 import time
 import traceback
 import json
-import uuid
+import random
 
 from my_config import set_config
 from my_utils import request_post, filter_video_status, send_msg_to_feishu, filter_video_status_app, \
@@ -22,7 +22,7 @@ def get_videos_from_flow_pool(app_type, size=1000):
     :return: videos  [{'videoId': 1111, 'flowPool': ''}, ...]
     """
     # 获取批次标识,利用首次获取数据时间戳为标记
-    batch_flag = int(time.time())
+    batch_flag = int(time.time() * 1000 + 111)
     log_.info(f"batch_flag: {batch_flag}")
     request_data = {'appType': app_type, 'batchFlag': batch_flag, 'size': size}
     videos = []