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代理',