Skip to content

Commit 21b1c18

Browse files
authored
docs: update readme
1 parent 964d0a9 commit 21b1c18

File tree

1 file changed

+42
-2
lines changed

1 file changed

+42
-2
lines changed

README.md

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,50 @@
2424
- 自动签到
2525
- 自动答题
2626

27-
## 架构图
27+
## 架构及时序图
2828

2929
![](https://cdn.jsdelivr.net/gh/timerring/scratchpad2023/2024/2025-06-01-17-53-56.png)
3030

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+
3171
## 快速开始
3272

3373
Fork 本仓库到你自己的仓库,然后添加对应的配置项到仓库的 secrets 中(在 `settings -> secrets and variables -> actions -> new repository secret`)。
@@ -128,4 +168,4 @@ https://github.com/timerring/CloudCheckin/blob/0b719258ab4f5f746b067798eb2a4185a
128168
- [2captcha](https://github.com/2captcha/2captcha-python)
129169
- [1point3acres](https://github.com/harryhare/1point3acres)
130170
- [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

Comments
 (0)