添加注释

This commit is contained in:
huang 2015-09-21 15:32:28 +08:00
parent d9620e416e
commit b49d19cdb2
1 changed files with 1 additions and 0 deletions

View File

@ -264,6 +264,7 @@ class User < Principal
if OnclickTime.where("user_id =?", User.current).first.nil?
message_new_time = OnclickTime.new
message_new_time.user_id = User.current.id
# 第一次初始化点击铃铛时间
message_new_time.onclick_time = User.current.last_login_on.nil? ? Time.now : User.current.last_login_on
message_new_time.save
end