refactor(models/services): 优化代码结构和可读性

-移除了不必要的变量声明
-简化了图像路径的构建方式
- 统一了代码格式
This commit is contained in:
2025-06-11 22:51:26 +08:00
parent f66f6d38fe
commit 242238d341
2 changed files with 6 additions and 10 deletions

View File

@@ -404,8 +404,7 @@ class Notification(QObject):
Config.get(Config.notify_CompanyWebHookBotUrl),
)
app_path = Config.app_path
image_path = app_path / "resources/images/notification/test_notify.png"
image_path = Config.app_path / "resources/images/notification/test_notify.png"
Notify.CompanyWebHookBotPushImage(
image_path,
Config.get(Config.notify_CompanyWebHookBotUrl),