{"id":21020613,"url":"https://github.com/5ime/xyb_auto_sign","last_synced_at":"2025-04-12T10:24:33.967Z","repository":{"id":127514767,"uuid":"583314238","full_name":"5ime/xyb_auto_sign","owner":"5ime","description":"校友邦实现自动签到签退和健康上报","archived":false,"fork":false,"pushed_at":"2023-03-22T09:23:30.000Z","size":8,"stargazers_count":23,"open_issues_count":4,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-26T05:22:22.315Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/5ime.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-29T12:06:40.000Z","updated_at":"2024-11-20T11:06:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"cfde91c8-d7eb-4ba6-bd40-5e771cc0eee4","html_url":"https://github.com/5ime/xyb_auto_sign","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5ime%2Fxyb_auto_sign","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5ime%2Fxyb_auto_sign/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5ime%2Fxyb_auto_sign/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5ime%2Fxyb_auto_sign/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/5ime","download_url":"https://codeload.github.com/5ime/xyb_auto_sign/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248551671,"owners_count":21123132,"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":[],"created_at":"2024-11-19T10:42:22.119Z","updated_at":"2025-04-12T10:24:33.941Z","avatar_url":"https://github.com/5ime.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 校友邦实现自动签到签退和健康上报\n\n打开 `校友邦` 小程序，默认只能 `微信登录` ，登录后在 `设置` 里 `退出登录` ，即可 **手机号登录**，可以通过 `忘记密码` 功能来重设密码。\n\n## 填写配置\n\n```php\n$config = array(\n    # 全局PUSH+推送token，留空则不推送\n    'pushToken' =\u003e '',\n    'userList' =\u003e array(\n        array(\n            # 登录账号\n            'username' =\u003e '',\n            # 登录密码\n            'password' =\u003e '',\n            'location' =\u003e array(\n                'country' =\u003e '中国',\n                'province' =\u003e '河南省',\n                'city' =\u003e '新乡市',\n                # 区县级行政区划代码，可自行百度获取\n                # 貌似可以直接写身份证前6位\n                'adcode' =\u003e '360000',\n                # 校友邦签到地址\n                'address' =\u003e '升旗台北300米',\n            ),\n            # 提交的时候有IP参数，暂不知用途，留空则自动获取本机IP\n            'ip' =\u003e '', \n            # 健康码图片地址，留空则不提交\n            'imgurl' =\u003e '',\n            # PUSH+推送token，留空则使用全局token\n            'pushToken' =\u003e '',\n        ),\n        // 多用户写法\n        // array(\n        //     'username' =\u003e '',\n        //     'password' =\u003e '',\n        //     'location' =\u003e array(\n        //         'country' =\u003e '',\n        //         'province' =\u003e '',\n        //         'city' =\u003e '',\n        //         'adcode' =\u003e '',\n        //         'address' =\u003e '',\n        //     ),\n        //     'ip' =\u003e '', \n        //     'imgurl' =\u003e '',\n        //     'pushToken' =\u003e '',\n        // ),\n    )\n);\n```\n\n## 定时推送\n\n我们可以把上面的 `php` 文件上传到网站中，使用宝塔计划任务进行触发，或者说写个 `shell` 脚本，`python` 脚本之类的搭配 `crontab` 定时触发，也可以上传到云函数，使用云函数的定时触发功能。\n\n## 写在后面\n\n具体的逻辑可以看下面的文章\n\n- [抓包校友邦小程序实现自动签到](https://5ime.cn/xybsyw.html)\n- [校友邦小程序签到加密逻辑解析](https://5ime.cn/xybsyw-re.html)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F5ime%2Fxyb_auto_sign","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F5ime%2Fxyb_auto_sign","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F5ime%2Fxyb_auto_sign/lists"}