Toggle navigation
Toggle navigation
This project
Loading...
Sign in
匡佳华
/
API-Interfaces
·
Commits
Go to a project
GitLab
Go to dashboard
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
chunhua
2016-04-01 17:52:34 +0800
Commit
ba2f4beaf680c8080bea9d5b9edaae373188815f
1 parent
2d5bc311
add
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
StarClass/53d8bb430cf223f173deea9c.png
StarClass/design.md
StarClass/53d8bb430cf223f173deea9c.png
0 → 100644
View file @
ba2f4be
41.3 KB
StarClass/design.md
0 → 100644
View file @
ba2f4be
## 签到流程
### Redis设计
1.
记录用户连续签到的时间
KV:
`KEY: userId, Value: checked_days` , 例如 `10623456-->6` #记录用户连续签到的天数,key过期时间是当天时间到第二天零点,例如,设置时间为 `2016-04-01 17:48`, 则失效时间为`2016-04-03 00:01`
2.
记录用户当天是否签到
KV:
`KEY: userId, Value: Y or N` , 例如 `10623456-->Y` # 记录用户当天是否签到,key过期时间:当天时间到今晚零点, 例如,设置时间为 `2016-04-01 17:48`, 则失效时间为`2016-04-02 00:01`
流程如下:
...
...
Please
register
or
login
to post a comment