Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

主题的已读未读标志 #25

Open
ltaoist opened this issue Aug 18, 2013 · 0 comments
Open

主题的已读未读标志 #25

ltaoist opened this issue Aug 18, 2013 · 0 comments
Assignees
Labels

Comments

@ltaoist
Copy link
Member

ltaoist commented Aug 18, 2013

现在是在前端做的,比较蛋疼。。。

考虑到后台做,维护张额外的 TopicRead 表,三列

tid userid lastread

其中tid是主题的id,userid是用户的id,lastread是最后一次打开时该主题的时间。

然后本来topic就有lastupdate记录,如果 lastupdate > lastread ,就说明这个主题是未读的。

@ghost ghost assigned gracece Oct 1, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants