浏览代码

Merge branch '2024-10-12-luojunhui-BugFix' of Server/title_with_video into master

luojunhui 6 月之前
父节点
当前提交
f6a8d0d509
共有 1 个文件被更改,包括 3 次插入2 次删除
  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.common import request_etl
 
+DEFAULT_ACCOUNT_ID = "69637498"
+
 
 class SearchABTest(object):
     """
@@ -336,7 +338,7 @@ async def search_videos(params, trace_id, gh_id, mysql_client):
             if recall_video:
                 response = await video_sender(
                     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,
                     platform=platform,
                     content_id=params['content_id']
@@ -358,4 +360,3 @@ async def search_videos(params, trace_id, gh_id, mysql_client):
                     )
                     return index
     return index
-