Created
May 31, 2024 10:40
-
-
Save fanlushuai/60a1d9cdda160a24f9a9d19ca24f464e to your computer and use it in GitHub Desktop.
获取gitee上autojs脚本。更快获取脚本。服务于小白用户。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let localPath = '/storage/emulated/0/脚本/autoTrade.js' | |
if (files.exists(localPath) && !confirm("脚本已存在,是否覆盖?")) { | |
toastLog("下次再见") | |
exit() | |
} | |
let severPath = 'https://gitee.com/yechen21/autotrader/raw/master/autoTrade.js' | |
let rsp = http.get(severPath + "?v=" + random(0, 923456789)); | |
if (rsp && rsp.statusCode == 200) { | |
files.writeBytes(localPath, rsp.body.bytes()); | |
toastLog("写入成功,请刷新") | |
} else { | |
alert("写入失败") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment