Skip to content

Commit

Permalink
Revert "chore: 在Python脚本中添加活动关导航下载与加载的示例 (#3916)"
Browse files Browse the repository at this point in the history
This reverts commit 16d8ae1.
  • Loading branch information
ABA2396 committed Dec 17, 2024
1 parent da7b0bf commit f688299
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/Python/sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,6 @@ def my_callback(msg, details, arg):

# 外服需要再额外传入增量资源路径,例如
# 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 参数
Expand Down

0 comments on commit f688299

Please sign in to comment.