|
|
@ -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)
|
|
|
|