Przeglądaj źródła

老系统增加默认 pq_account_id

罗俊辉 6 miesięcy temu
rodzic
commit
83dc291d9e
1 zmienionych plików z 3 dodań i 2 usunięć
  1. 3 2
      applications/schedule/search_schedule.py

+ 3 - 2
applications/schedule/search_schedule.py

@@ -13,6 +13,8 @@ from applications.functions.video_item import VideoProducer
 from applications.functions.kimi import KimiServer
 from applications.functions.kimi import KimiServer
 from applications.functions.common import request_etl
 from applications.functions.common import request_etl
 
 
+DEFAULT_ACCOUNT_ID = "69637498"
+
 
 
 class SearchABTest(object):
 class SearchABTest(object):
     """
     """
@@ -336,7 +338,7 @@ async def search_videos(params, trace_id, gh_id, mysql_client):
             if recall_video:
             if recall_video:
                 response = await video_sender(
                 response = await video_sender(
                     video_obj=recall_video,
                     video_obj=recall_video,
-                    user=gh_id_dict.get(gh_id),
+                    user=gh_id_dict.get(gh_id, DEFAULT_ACCOUNT_ID),
                     trace_id=trace_id,
                     trace_id=trace_id,
                     platform=platform,
                     platform=platform,
                     content_id=params['content_id']
                     content_id=params['content_id']
@@ -358,4 +360,3 @@ async def search_videos(params, trace_id, gh_id, mysql_client):
                     )
                     )
                     return index
                     return index
     return index
     return index
-