fix:修复配置文件迁移失败问题

This commit is contained in:
SengokuCola
2026-04-19 20:10:56 +08:00
parent a68dca1584
commit d2f90635fa
4 changed files with 140 additions and 6 deletions

View File

@@ -19,7 +19,7 @@ class Server:
def __init__(self, host: Optional[str] = None, port: Optional[int] = None, app_name: str = "MaiMCore"):
self.app = FastAPI(title=app_name)
self._host: str = "127.0.0.1"
self._port: int = 8080
self._port: int = 8000
self._server: Optional[UvicornServer] = None
self.set_address(host, port)