From 8e8722e3896082546dc458f435d61bc855754b5d Mon Sep 17 00:00:00 2001 From: Dokuro Date: Fri, 24 May 2024 09:29:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=AD=A3=E8=B5=84=E6=BA=90=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E9=93=BE=E6=8E=A5=20(#507)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LittlePaimon/config/config/model.py | 2 +- LittlePaimon/utils/tool.py | 6 +++--- LittlePaimon/web/pages/config_manage.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/LittlePaimon/config/config/model.py b/LittlePaimon/config/config/model.py index 834c237..cd79bab 100644 --- a/LittlePaimon/config/config/model.py +++ b/LittlePaimon/config/config/model.py @@ -55,7 +55,7 @@ class ConfigModel(BaseModel): # 早报60s morning_news: str = Field('https://api.vvhan.com/api/60s', alias='早报60s') - github_proxy: str = Field('https://github.cherishmoon.fun/', alias='github资源地址') + github_proxy: str = Field('https://github.cherishmoon.top/', alias='github资源地址') @property def alias_dict(self): diff --git a/LittlePaimon/utils/tool.py b/LittlePaimon/utils/tool.py index a7eb963..03edc8c 100644 --- a/LittlePaimon/utils/tool.py +++ b/LittlePaimon/utils/tool.py @@ -93,13 +93,13 @@ async def check_resource(): len(list((RESOURCE_BASE_PATH / 'LittlePaimon').rglob('*'))) >= 50): try: await aiorequests.download( - url=f'{config.github_proxy}https://raw.githubusercontent.com/CMHopeSunshine/LittlePaimonRes/main/resources.zip', + url=f'{config.github_proxy}https://github.com/CMHopeSunshine/LittlePaimonRes/raw/main/resources.zip', save_path=RESOURCE_BASE_PATH / '小派蒙基础资源.zip') zipfile.ZipFile(RESOURCE_BASE_PATH / '小派蒙基础资源.zip').extractall(RESOURCE_BASE_PATH) (RESOURCE_BASE_PATH / '小派蒙基础资源.zip').unlink() await aiorequests.download( - url=f'{config.github_proxy}https://raw.githubusercontent.com/CMHopeSunshine/GenshinWikiMap/master/resources/genshin_resources.zip', + url=f'{config.github_proxy}https://github.com/CMHopeSunshine/GenshinWikiMap/raw/master/resources/genshin_resources.zip', save_path=RESOURCE_BASE_PATH / '原神图标资源.zip') zipfile.ZipFile(RESOURCE_BASE_PATH / '原神图标资源.zip').extractall(RESOURCE_BASE_PATH / 'LittlePaimon') (RESOURCE_BASE_PATH / '原神图标资源.zip').unlink() @@ -110,7 +110,7 @@ async def check_resource(): if not (RESOURCE_BASE_PATH / 'LittlePaimon' / 'star_rail').is_dir(): try: await aiorequests.download( - url=f'{config.github_proxy}https://raw.githubusercontent.com/CMHopeSunshine/LittlePaimonRes/main/star_rail.zip', + url=f'{config.github_proxy}https://github.com/CMHopeSunshine/LittlePaimonRes/raw/main/star_rail.zip', save_path=RESOURCE_BASE_PATH / 'star_rail.zip') zipfile.ZipFile(RESOURCE_BASE_PATH / 'star_rail.zip').extractall(RESOURCE_BASE_PATH / 'LittlePaimon' / 'star_rail') (RESOURCE_BASE_PATH / 'star_rail.zip').unlink() diff --git a/LittlePaimon/web/pages/config_manage.py b/LittlePaimon/web/pages/config_manage.py index 0fa1175..bc7ce4d 100644 --- a/LittlePaimon/web/pages/config_manage.py +++ b/LittlePaimon/web/pages/config_manage.py @@ -378,8 +378,8 @@ other_form = Form( 'value': 'https://ghproxy.com/' }, { - 'label': 'github.cherishmoon.fun代理', - 'value': 'https://github.cherishmoon.fun/' + 'label': 'github.cherishmoon.top代理', + 'value': 'https://github.cherishmoon.top/' }, { 'label': 'github.91chi.fun代理',