This commit is contained in:
thsrite
2025-04-17 14:47:11 +08:00
parent 648dcefd40
commit 76a59c437e
2 changed files with 4 additions and 3 deletions

View File

@@ -778,12 +778,13 @@
"name": "Lucky",
"description": "Lucky HomePage自定义API。",
"labels": "工具",
"version": "1.0.1",
"version": "1.0.2",
"icon": "Lucky_A.png",
"author": "thsrite",
"level": 1,
"v2": true,
"history": {
"v1.0.2": "修复问题",
"v1.0.1": "支持Lucky最新版本获取ipv4。",
"v1.0.0": "Lucky HomePage自定义API。"
}

View File

@@ -18,7 +18,7 @@ class Lucky(_PluginBase):
# 插件图标
plugin_icon = "Lucky_A.png"
# 插件版本
plugin_version = "1.0.1"
plugin_version = "1.0.2"
# 插件作者
plugin_author = "thsrite"
# 作者主页
@@ -87,7 +87,7 @@ class Lucky(_PluginBase):
response.raise_for_status() # 如果状态码不是 2xx抛出异常
if response.json().get('ret') == 0:
return response.json().get('list')[0].get('CertsInfo')[0].get('NotAfterTime')
except requests.exceptions.RequestException as e:
except Exception as e:
logging.error("An error occurred:", e)
return None