有我相关500问题

This commit is contained in:
huang 2015-07-10 15:02:22 +08:00
parent 87320bf77b
commit 179f7841f1
1 changed files with 3 additions and 0 deletions

View File

@ -22,6 +22,9 @@ class ActivityNotifysController < ApplicationController
list = query.order('is_read,id desc').limit(limit).offset(@obj_pages.offset).all();
events=[];
for item in list
if item.activity.nil?
next
end
event = item.activity;
event.set_notify_id(item.id)
event.set_notify_is_read(item.is_read)