diff --git a/.vscode/settings.json b/.vscode/settings.json index c0636c8..65ccab4 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -8,15 +8,15 @@ "python.languageServer": "Pylance", "[python]": { "editor.codeActionsOnSave": { - "source.organizeImports": true, - "source.fixAll": true + "source.organizeImports": "explicit", + "source.fixAll": "explicit" } }, "editor.formatOnSave": true, "files.watcherExclude": { "**/.git/objects/**": true, "**/.git/subtree-cache/**": true, - "**/.venv/**": true, + "**/.venv/**": true }, "git.autofetch": true, "git.enableSmartCommit": true, @@ -25,10 +25,6 @@ "python.defaultInterpreterPath": "${workspaceFolder}/.venv/Scripts/python.exe", "python.formatting.blackPath": "${workspaceFolder}/.venv/Scripts/black.exe", "python.linting.flake8Path": "${workspaceFolder}/.venv/Scripts/flake8.exe", - "python.formatting.blackArgs": [ - "--line-length=88" - ], - "python.linting.flake8Args": [ - "--ignore=W391,W292,W503,E203" - ] + "python.formatting.blackArgs": ["--line-length=88"], + "python.linting.flake8Args": ["--ignore=W391,W292,W503,E203"] } diff --git a/nonebot_plugin_gachalogs/__meta__.py b/nonebot_plugin_gachalogs/__meta__.py index defc5fb..310cf3d 100644 --- a/nonebot_plugin_gachalogs/__meta__.py +++ b/nonebot_plugin_gachalogs/__meta__.py @@ -134,7 +134,7 @@ def datetime_with_tz( } # 抽卡链接地址 -ROOT_URL = "https://hk4e-api.mihoyo.com/event/gacha_info/api/getGachaLog" +ROOT_URL = "https://public-operation-hk4e.mihoyo.com/gacha_info/api/getGachaLog" ROOT_OVERSEA_URL = ROOT_URL.replace("hk4e-api", "hk4e-api-os") # 米游社 API 地址 TOKEN_API = "https://api-takumi.mihoyo.com/auth/api/getMultiTokenByLoginTicket"