luojunhui 1 месяц назад
Родитель
Сommit
74fbb2e3c9
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      applications/api/aigc_system_api.py

+ 1 - 1
applications/api/aigc_system_api.py

@@ -34,7 +34,7 @@ class AigcSystemApi:
         url = "http://aigc-api.cybertogether.net/aigc/crawler/content/videoPoolCrawlerRelation"
         payload = json.dumps({"params": {"relations": relation_list}})
         try:
-            response = requests.post(url, headers=headers, json=payload, timeout=60)
+            response = requests.post(url, headers=headers, data=payload, timeout=60)
             response.raise_for_status()
             return response.json()
         except RequestException as e: