Procházet zdrojové kódy

调整视频发送

d1
H Vs před 1 měsícem
rodič
revize
497ec2ad78
2 změnil soubory, kde provedl 2 přidání a 4 odebrání
  1. +0
    -2
      app/endpoints/pipeline_endpoint.py
  2. +2
    -2
      services/biz_service.py

+ 0
- 2
app/endpoints/pipeline_endpoint.py Zobrazit soubor

@@ -1012,8 +1012,6 @@ async def handle_10002_msg_async(request: Request,token_id,app_id, wxid,msg_data
logger.error(f"未知错误: {e}")
return



async def handle_10000_msg_async(request: Request,token_id,app_id, wxid,msg_data,from_wxid, to_wxid):
'''
修改群名称


+ 2
- 2
services/biz_service.py Zobrazit soubor

@@ -221,9 +221,9 @@ class BizService():
_, ext = os.path.splitext(filename)

if ext == '.mp4':
await self.send_video_message(self, token_id, app_id, agent_wxid, intersection_wxids, file_url)
await self.send_video_message(token_id, app_id, agent_wxid, intersection_wxids, file_url)
else:
await self.send_other_file_message(self, token_id, app_id, agent_wxid, intersection_wxids, file_url)
await self.send_other_file_message(token_id, app_id, agent_wxid, intersection_wxids, file_url)
#time.sleep(random.uniform(1.5, 3))




Načítá se…
Zrušit
Uložit