diff --git a/kinit-api/application/settings.py b/kinit-api/application/settings.py index 6820e04..24795d9 100644 --- a/kinit-api/application/settings.py +++ b/kinit-api/application/settings.py @@ -11,7 +11,7 @@ from fastapi.security import OAuth2PasswordBearer """ 系统版本 """ -VERSION = "1.8.0" +VERSION = "1.8.1" """安全警告: 不要在生产中打开调试运行!""" DEBUG = True diff --git a/kinit-api/main.py b/kinit-api/main.py index 6df5eca..90b90c6 100644 --- a/kinit-api/main.py +++ b/kinit-api/main.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # @version : 1.0 -# @Creaet Time : 2021/10/19 15:47 +# @Create Time : 2021/10/19 15:47 # @File : main.py # @IDE : PyCharm # @desc : 主程序入口 @@ -25,7 +25,6 @@ from scripts.create_app.main import CreateApp from core.event import lifespan from utils.tools import import_modules - shell_app = typer.Typer() @@ -67,7 +66,10 @@ def create_app(): @shell_app.command() -def run(host: str=typer.Option(default='0.0.0.0', help='监听主机IP,默认开放给本网络所有主机'), port: int=typer.Option(default=9000, help='监听端口')): +def run( + host: str = typer.Option(default='0.0.0.0', help='监听主机IP,默认开放给本网络所有主机'), + port: int = typer.Option(default=9000, help='监听端口') +): """ 启动项目