添加注释
This commit is contained in:
parent
d9620e416e
commit
b49d19cdb2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue