zhangyong 4 mesi fa
parent
commit
311f7ea325
3 ha cambiato i file con 8 aggiunte e 7 eliminazioni
  1. 1 0
      common/piaoquan.py
  2. 6 6
      pq_data_handle.py
  3. 1 1
      pq_video/pq_video.py

+ 1 - 0
common/piaoquan.py

@@ -38,6 +38,7 @@ class PQ:
         if code == 0:
         if code == 0:
             new_video_id = data["data"]["id"]
             new_video_id = data["data"]["id"]
             print(new_video_id)
             print(new_video_id)
+            return new_video_id
 
 
     """
     """
     新生成视频上传到对应账号下
     新生成视频上传到对应账号下

+ 6 - 6
pq_data_handle.py

@@ -38,7 +38,7 @@ def video_task_start():
             )
             )
             Feishu.finish_bot(text,
             Feishu.finish_bot(text,
                               "https://open.feishu.cn/open-apis/bot/v2/hook/65bc5463-dee9-46d0-bc2d-ec6c49a8f3cd",
                               "https://open.feishu.cn/open-apis/bot/v2/hook/65bc5463-dee9-46d0-bc2d-ec6c49a8f3cd",
-                              "【 站内视频重发失败通知 】")
+                              "【 老内容重发通知 】")
             logger.error(f"[+] {data}处理失败,失败信息{e}")
             logger.error(f"[+] {data}处理失败,失败信息{e}")
             continue
             continue
 
 
@@ -46,8 +46,8 @@ def schedule_tasks():
     schedule.every(6).minutes.do(video_task_start)
     schedule.every(6).minutes.do(video_task_start)
 
 
 if __name__ == '__main__':
 if __name__ == '__main__':
-    schedule_tasks()  # 调用任务调度函数
-    while True:
-        schedule.run_pending()
-        time.sleep(1)  # 每秒钟检查一次
-    # video_task_start()
+    # schedule_tasks()  # 调用任务调度函数
+    # while True:
+    #     schedule.run_pending()
+    #     time.sleep(1)  # 每秒钟检查一次
+    video_task_start()

+ 1 - 1
pq_video/pq_video.py

@@ -44,7 +44,7 @@ class PqViode:
                 )
                 )
                 Feishu.finish_bot(text,
                 Feishu.finish_bot(text,
                                   "https://open.feishu.cn/open-apis/bot/v2/hook/65bc5463-dee9-46d0-bc2d-ec6c49a8f3cd",
                                   "https://open.feishu.cn/open-apis/bot/v2/hook/65bc5463-dee9-46d0-bc2d-ec6c49a8f3cd",
-                                  "【 搬运&改造效率工具失败通知 】")
+                                  "【 老内容重发通知 】")
                 continue
                 continue
 
 
             pq_list.append(code)
             pq_list.append(code)