|
24 | 24 | - 自动签到 |
25 | 25 | - 自动答题 |
26 | 26 |
|
27 | | -## 架构图 |
| 27 | +## 架构及时序图 |
28 | 28 |
|
29 | 29 |  |
30 | 30 |
|
| 31 | +```mermaid |
| 32 | +sequenceDiagram |
| 33 | + participant User as User |
| 34 | + participant CF as Cloudflare Worker<br/>(Scheduler) |
| 35 | + participant CCI as CircleCI<br/>(CI/CD Pipeline) |
| 36 | + participant SP as Platforms |
| 37 | + participant TC as 2captcha |
| 38 | + |
| 39 | + Note over User: Configure Github secrets only once |
| 40 | + User-->>CF: Auto deploy cloudlflare workers |
| 41 | + User-->>CCI: Auto sync the secrets to CircleCI |
| 42 | +
|
| 43 | + rect rgb(240, 248, 255) |
| 44 | + Note over CF: Cron runs every day |
| 45 | +
|
| 46 | + CF->>+CCI: Trigger Webhook |
| 47 | + Note over CCI: Start jobs |
| 48 | +
|
| 49 | + loop Loop platforms |
| 50 | + CCI->>+SP: Send Request checkin/QA<br/>(with Cookie) |
| 51 | + |
| 52 | + alt Request captcha |
| 53 | + SP->>+TC: request 2captcha |
| 54 | + TC->>-SP: bypass captcha |
| 55 | + end |
| 56 | + |
| 57 | + SP->>-CCI: Return Response |
| 58 | + end |
| 59 | +
|
| 60 | + alt Request success |
| 61 | + CCI->>+User: Send notification<br/>(TELEGRAM_BOT) |
| 62 | + else Request fail |
| 63 | + CCI->>+User: Send email<br/>(CircleCI) |
| 64 | + end |
| 65 | +
|
| 66 | + CCI-->>-CF: Completed |
| 67 | + Note over CF: Wait for next turn |
| 68 | + end |
| 69 | +``` |
| 70 | + |
31 | 71 | ## 快速开始 |
32 | 72 |
|
33 | 73 | Fork 本仓库到你自己的仓库,然后添加对应的配置项到仓库的 secrets 中(在 `settings -> secrets and variables -> actions -> new repository secret`)。 |
@@ -128,4 +168,4 @@ https://github.com/timerring/CloudCheckin/blob/0b719258ab4f5f746b067798eb2a4185a |
128 | 168 | - [2captcha](https://github.com/2captcha/2captcha-python) |
129 | 169 | - [1point3acres](https://github.com/harryhare/1point3acres) |
130 | 170 | - [V2EX](https://github.com/CruiseTian/action-hub) |
131 | | -- [nodeseek](https://github.com/xinycai/nodeseek_signin) |
| 171 | +- [nodeseek](https://github.com/xinycai/nodeseek_signin) |
0 commit comments