有我相关500问题
This commit is contained in:
parent
87320bf77b
commit
179f7841f1
|
@ -22,6 +22,9 @@ class ActivityNotifysController < ApplicationController
|
||||||
list = query.order('is_read,id desc').limit(limit).offset(@obj_pages.offset).all();
|
list = query.order('is_read,id desc').limit(limit).offset(@obj_pages.offset).all();
|
||||||
events=[];
|
events=[];
|
||||||
for item in list
|
for item in list
|
||||||
|
if item.activity.nil?
|
||||||
|
next
|
||||||
|
end
|
||||||
event = item.activity;
|
event = item.activity;
|
||||||
event.set_notify_id(item.id)
|
event.set_notify_id(item.id)
|
||||||
event.set_notify_is_read(item.is_read)
|
event.set_notify_is_read(item.is_read)
|
||||||
|
|
Loading…
Reference in New Issue