{"id":13671034,"url":"https://github.com/lbb00/aowu","last_synced_at":"2025-04-27T13:33:31.737Z","repository":{"id":41375211,"uuid":"229798734","full_name":"lbb00/aowu","owner":"lbb00","description":"基于AUTO.JS 8 PRO 的自动化签到、羊毛工具，适配MIUI12","archived":true,"fork":false,"pushed_at":"2020-08-05T16:59:33.000Z","size":143,"stargazers_count":83,"open_issues_count":0,"forks_count":32,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-11T08:43:44.789Z","etag":null,"topics":["autojs","autojs8","miui","miui12"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lbb00.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-23T17:50:01.000Z","updated_at":"2024-05-23T13:37:32.000Z","dependencies_parsed_at":"2022-08-31T22:50:36.828Z","dependency_job_id":null,"html_url":"https://github.com/lbb00/aowu","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lbb00%2Faowu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lbb00%2Faowu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lbb00%2Faowu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lbb00%2Faowu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lbb00","download_url":"https://codeload.github.com/lbb00/aowu/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251145856,"owners_count":21543110,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["autojs","autojs8","miui","miui12"],"created_at":"2024-08-02T09:00:56.450Z","updated_at":"2025-04-27T13:33:26.727Z","avatar_url":"https://github.com/lbb00.png","language":"JavaScript","readme":"# 嗷呜\n\n\u003e 基于 [AUTO.JS 8 PRO](https://pro.autojs.org/) 的安卓自动化脚本\n\u003e\n\u003e pro 版本需要购买，支持一下作者吧\n\nversion: 1.0.0\n\n## 恶龙咆哮\n\n由于精力有限，并没有提供打包好的安卓包可以用，也没有界面。需要使用的小伙伴需要自己有一定的编程和动手能力，欢迎开源大佬们贡献脚本。\n\n!\u003e 本软件仅供学习交流，请勿用与非法灰产，后果自负。\n\n## 特点\n\n- MIUI12 息屏状态下点亮屏幕，9 宫格键盘自动解锁（需要配置密码）\n- 完成单个 APP 任务后强制结束 APP，避免占用过多的内存\n\n### 支持系统\n\n- MIUI12 - 小米 10 pro 亲测有效\n\n若运行在非小米机型上，需要移除解锁屏幕的代码\n\n### 目前可以执行的任务\n\n- 京东商城\n  - 签到\n- 京东金融-学生版\n  - 签到领成长值\n- LYNK\u0026CO\n  - 分享送 co 币\n- 平安证券\n  - 签到（需开启打开后自动进入签到）\n- 壹钱包\n  - 签到\n- 云闪付\n  - 签到\n- KFC\n  - 签到\n- 中国联通\n  - 签到\n- 大众点评\n  - 签到\n- 平安好车主\n  - 签到\n- 苏宁\n  - 签到\n- 海底捞\n  - 签到\n- 什么值得买\n  - 签到\n\n## 如何使用\n\n1. 手机上下载并登陆 autojs8 pro。需要给 autojs8 pro 设置后台启动、无障碍等权限（权限非常重要）\n2. 将本仓库下载，使用 VSCode 等工具打开，在项目目录中建立 config.js 文件，并配置（配置内容在下方）\n3. 根据自己的需要在 main.js 中修改需要执行的任务，也可以自己开发更多脚本\n4. 在 VSCode 上安装 `Auto.js-Pro-Ext` 插件，并连接到手机，具体的使用教程请参考插件文档\n5. 愉快的 run\n\n```javascript\n// config.js\nmodule.exports = {\n  unlockPassword: '123456', // 锁屏密码\n}\n```\n\n## 开发小技巧\n\n1. 通过 Android Studio 的 Device Monitor 来查看当前 activity 的布局，可以更精准的开发脚本\n2. 进入 adb shell，使用`dumpsys activity | grep \"mResu\"`命令查看当前的 activity 名称\n\n## 基于本项目开发更多脚本\n\n### 注意项\n\n1. better.js 文件是对 autojs 一些 API 的扩展、优化\n2. autojs 对 es6 语法支持有限\n\n### Script Example\n\n```javascript\n// 通过 getMaid(packageName) 来创建一个 APP 女仆，负责启动 APP、关闭 APP 等\nconst maid = getMaid('com.hundsun.winner.pazq')\n\nfunction task() {\n  // 启动 APP\n  maid.launch()\n\n  // 等待主页加载出来\n  waitForActivity('com.hundsun.winner.pazq.ui.web.WebViewActivity')\n  sleep(2000)\n\n  // 寻找签到按钮并点击\n  const upBtn = textMatches(/^签到.*/).clickable(true).findOnce()\n  if (upBtn) {\n    upBtn.click()\n    sleep(1000)\n    if (text('恭喜您获得').findOnce()) {\n      log('平安证券 - 签到成功')\n      return\n    }\n  }\n\n  // 关闭APP，减少内存压力\n  maid.close()\n}\n\nmodule.exports = task\n```\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flbb00%2Faowu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flbb00%2Faowu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flbb00%2Faowu/lists"}