浏览代码

Merge branch '2025-03-25-add-platform-to-relation' of luojunhui/LongArticlesJob into master

luojunhui 3 月之前
父节点
当前提交
46fe9e99f7
共有 2 个文件被更改,包括 3 次插入1 次删除
  1. 1 0
      applications/api/aigc_system_api.py
  2. 2 1
      coldStartTasks/publish/publish_video_to_pq_for_audit.py

+ 1 - 0
applications/api/aigc_system_api.py

@@ -23,6 +23,7 @@ headers = {
 class RelationDict(TypedDict):
     videoPoolTraceId: str
     channelContentId: str
+    platform: str
 
 
 class AigcSystemApi:

+ 2 - 1
coldStartTasks/publish/publish_video_to_pq_for_audit.py

@@ -248,7 +248,8 @@ class PublishVideosForAudit(object):
                     relation_list=[
                         {
                             "videoPoolTraceId": video_obj['content_trace_id'],
-                            "channelContentId": str(video_id)
+                            "channelContentId": str(video_id),
+                            "platform": video_obj['platform'],
                         }
                     ]
                 )