Kaynağa Gözat

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

luojunhui 1 ay önce
ebeveyn
işleme
46fe9e99f7

+ 1 - 0
applications/api/aigc_system_api.py

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

+ 2 - 1
coldStartTasks/publish/publish_video_to_pq_for_audit.py

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