ming 3 år sedan
förälder
incheckning
0085e0805d
1 ändrade filer med 2 tillägg och 7 borttagningar
  1. 2 7
      api/main.py

+ 2 - 7
api/main.py

@@ -242,13 +242,8 @@ 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)
+    proto_req = models.request(name, text_content, image_urls, req.avatar, req.client_id, req.multiLang)
+    save_history(proto_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()
     return {"msg":"製作影片需要時間,請您耐心等候,成果會傳送至LINE群組中"}