From f6882998dd25d6e6d21682eeeb9ca8ce63b1d9be Mon Sep 17 00:00:00 2001 From: uye <99072975+ABA2396@users.noreply.github.com> Date: Tue, 17 Dec 2024 13:14:09 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"chore:=20=E5=9C=A8Python=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=E4=B8=AD=E6=B7=BB=E5=8A=A0=E6=B4=BB=E5=8A=A8=E5=85=B3?= =?UTF-8?q?=E5=AF=BC=E8=88=AA=E4=B8=8B=E8=BD=BD=E4=B8=8E=E5=8A=A0=E8=BD=BD?= =?UTF-8?q?=E7=9A=84=E7=A4=BA=E4=BE=8B=20(#3916)"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 16d8ae1ec5631dfe1ced19192ce83f4e67f14a51. --- src/Python/sample.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/Python/sample.py b/src/Python/sample.py index ab5dae0795..616d011a96 100644 --- a/src/Python/sample.py +++ b/src/Python/sample.py @@ -26,16 +26,6 @@ if __name__ == "__main__": # 外服需要再额外传入增量资源路径,例如 # incremental_path=path / 'resource' / 'global' / 'YoStarEN' - # - # 活动关导航需额外下载,可通过增量资源路径加载。 - # import urllib.request - # ota_tasks_url = 'https://ota.maa.plus/MaaAssistantArknights/api/resource/tasks.json' - # ota_tasks_path = path / 'cache' / 'resource' / 'tasks.json' - # ota_tasks_path.parent.mkdir(parents=True, exist_ok=True) - # with open(ota_tasks_path, 'w', encoding='utf-8') as f: - # with urllib.request.urlopen(ota_tasks_url) as u: - # f.write(u.read().decode('utf-8')) - # Asst.load(path=path, incremental_path=path / 'cache') Asst.load(path=path) # 若需要获取详细执行信息,请传入 callback 参数