From ae43eab0a84608562ec7283a44489b435746c2d9 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Sat, 16 Mar 2024 20:43:27 +0800 Subject: [PATCH] fix #110 --- package.json | 2 +- plugins/customsites/__init__.py | 9 ++------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 44ede7d..70b2c5c 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "CustomSites": { "name": "自定义站点", "description": "增加自定义站点为签到和统计使用。", - "version": "0.1", + "version": "1.0", "icon": "world.png", "author": "lightolly", "level": 2 diff --git a/plugins/customsites/__init__.py b/plugins/customsites/__init__.py index e8058d7..e212f4e 100644 --- a/plugins/customsites/__init__.py +++ b/plugins/customsites/__init__.py @@ -1,7 +1,6 @@ from typing import Any, List, Dict, Tuple from urllib.parse import urlparse -from app.core.config import settings from app.core.event import EventManager from app.helper.cookiecloud import CookieCloudHelper from app.log import logger @@ -17,7 +16,7 @@ class CustomSites(_PluginBase): # 插件图标 plugin_icon = "world.png" # 插件版本 - plugin_version = "0.1" + plugin_version = "1.0" # 插件作者 plugin_author = "lightolly" # 作者主页 @@ -57,11 +56,7 @@ class CustomSites(_PluginBase): _site_urls: str = "" def init_plugin(self, config: dict = None): - self.cookie_cloud = CookieCloudHelper( - server=settings.COOKIECLOUD_HOST, - key=settings.COOKIECLOUD_KEY, - password=settings.COOKIECLOUD_PASSWORD - ) + self.cookie_cloud = CookieCloudHelper() del_sites = [] sites = []