mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-08 00:46:57 +08:00
fix
This commit is contained in:
+2
-2
@@ -27,8 +27,7 @@ from app.helper.sites import SitesHelper
|
|||||||
from app.helper.message import MessageHelper
|
from app.helper.message import MessageHelper
|
||||||
from app.scheduler import Scheduler
|
from app.scheduler import Scheduler
|
||||||
from app.command import Command, CommandChian
|
from app.command import Command, CommandChian
|
||||||
from app.schemas import Notification
|
from app.schemas import Notification, NotificationType
|
||||||
|
|
||||||
|
|
||||||
# App
|
# App
|
||||||
App = FastAPI(title=settings.PROJECT_NAME,
|
App = FastAPI(title=settings.PROJECT_NAME,
|
||||||
@@ -150,6 +149,7 @@ def check_auth():
|
|||||||
MessageHelper().put(f"注意:{err_msg}")
|
MessageHelper().put(f"注意:{err_msg}")
|
||||||
CommandChian().post_message(
|
CommandChian().post_message(
|
||||||
Notification(
|
Notification(
|
||||||
|
mtype=NotificationType.Manual,
|
||||||
title="MoviePilot用户认证",
|
title="MoviePilot用户认证",
|
||||||
text=err_msg
|
text=err_msg
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user