动态内容调整

This commit is contained in:
guange 2016-01-20 23:17:17 +08:00
parent fce8d85380
commit 6d732ff5ff
1 changed files with 2 additions and 3 deletions

View File

@ -122,13 +122,12 @@ class WechatsController < ActionController::Base
if uw && uw.user
ua = user_activity(uw.user)
logo = "trustie_logo2.png"
i = 0
news =[]
ua.each do |ua|
ua.each do |a|
i += 1
activity = process_activity(ua)
activity = process_activity(a)
if activity
news << {title: activity[0],
content: activity[1],