update start.sh
This commit is contained in:
parent
fc8ab52858
commit
bccb369fe9
3
app.py
3
app.py
|
|
@ -1,3 +1,4 @@
|
|||
import os
|
||||
from fastmcp import FastMCP
|
||||
from spider.mail_qq import start as a1
|
||||
import asyncio
|
||||
|
|
@ -20,6 +21,8 @@ async def mail_qq_spider(account: str,display: int) -> str:
|
|||
Returns:
|
||||
str: 爬虫结果
|
||||
"""
|
||||
os.environ['DISPLAY'] = f':{display}' # 改成你的 VNC 显示器编号
|
||||
|
||||
result = await asyncio.to_thread(a1, account, display)
|
||||
return result
|
||||
@mcp.tool()
|
||||
|
|
|
|||
Loading…
Reference in New Issue