ming 3 år sedan
förälder
incheckning
e2f8ee1746
1 ändrade filer med 6 tillägg och 0 borttagningar
  1. 6 0
      api/main.py

+ 6 - 0
api/main.py

@@ -242,6 +242,12 @@ async def make_anchor_video_gSlide(req:models.gSlide_req,token: str = Depends(oa
         except:
             return {'msg':"無法辨別圖片網址"+imgu}
     user_id = get_user_id(token)
+    proto_req = models.request()
+    proto_req.text_content = text_content
+    proto_req.name = name
+    proto_req.image_urls = image_urls
+    proto_req.avatar = req.avatar
+    proto_req.multiLang = req.multiLang
     save_history(req,name_hash,user_id)
     x = threading.Thread(target=gen_video_queue, args=(name_hash,name, text_content, image_urls,int(req.avatar),req.multiLang,user_id))
     x.start()