From 932d754b8ad2226cb0c79e1128b77ca14d210a71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=AF=BB=E6=AC=A2?= Date: Tue, 8 Apr 2025 14:47:19 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E4=BC=98=E5=8C=96=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=A0=B7=E5=BC=8F=EF=BC=8C=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E5=9B=BE=E6=A0=87=E5=AF=B9=E9=BD=90=E9=97=AE?= =?UTF-8?q?=E9=A2=98=EF=BC=9B=E5=A2=9E=E5=BC=BA=E5=AE=9A=E6=97=B6=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E5=88=A0=E9=99=A4=E9=94=99=E8=AF=AF=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/tasks/tasks.go | 5 ++++- internal/view/auth/login.html | 26 +++++++++++--------------- 2 files changed, 15 insertions(+), 16 deletions(-) diff --git a/internal/tasks/tasks.go b/internal/tasks/tasks.go index f6fd28c..7d01e91 100644 --- a/internal/tasks/tasks.go +++ b/internal/tasks/tasks.go @@ -74,5 +74,8 @@ func DeleteJob(robotId uint) { log.Printf("定时任务不存在,robotId: %d", robotId) return } - _ = scheduler.RemoveJob(jobId.(uuid.UUID)) + if err := scheduler.RemoveJob(jobId.(uuid.UUID)); err != nil { + log.Printf("删除定时任务失败: %v", err) + return + } } diff --git a/internal/view/auth/login.html b/internal/view/auth/login.html index d45a241..57efd0d 100644 --- a/internal/view/auth/login.html +++ b/internal/view/auth/login.html @@ -14,18 +14,18 @@ font-family: 'Inter', system-ui, -apple-system, sans-serif; background-color: #f8fafc; } - + .pattern-grid { background-image: linear-gradient(#e5e7eb 1px, transparent 1px), linear-gradient(90deg, #e5e7eb 1px, transparent 1px); background-size: 30px 30px; background-position: center center; opacity: 0.3; } - + .animate-float { animation: float 6s ease-in-out infinite; } - + @keyframes float { 0% { transform: translateY(0px) rotate(0deg); } 50% { transform: translateY(-10px) rotate(1deg); } @@ -38,7 +38,7 @@
- +
@@ -50,12 +50,12 @@

欢迎回来

请输入您的管理密钥进入系统

- +
- +
{{if .ErrorMsg}} @@ -66,31 +66,27 @@ {{.ErrorMsg}}
{{end}} - +
-
-
-

默认密钥为 admin,仅供演示使用

- +
- +
@@ -98,7 +94,7 @@
- +

© 2025 WeChatBot 微信机器人管理系统