留言消息发送策略
This commit is contained in:
parent
716ffcfdc9
commit
9096fca298
|
@ -209,14 +209,20 @@ class JournalsForMessage < ActiveRecord::Base
|
|||
end
|
||||
else # 留言回复
|
||||
reply_to = User.find(self.reply_id)
|
||||
if self.user_id != self.parent.user_id
|
||||
receivers << reply_to
|
||||
if self.reply_id != self.parent.user_id
|
||||
receivers << self.parent.user
|
||||
end
|
||||
else
|
||||
if self.user_id != self.reply_id # 添加我回复的那个人
|
||||
receivers << reply_to
|
||||
end
|
||||
if self.user_id != self.parent.jour_id # 给东家发信息
|
||||
receivers << self.parent.jour
|
||||
end
|
||||
# if self.user_id != self.parent.user_id
|
||||
# receivers << reply_to
|
||||
# if self.reply_id != self.parent.user_id
|
||||
# receivers << self.parent.user
|
||||
# end
|
||||
# else
|
||||
# receivers << reply_to
|
||||
# end
|
||||
|
||||
# 添加留言回复人
|
||||
#reply_to = User.find(self.reply_id)
|
||||
|
|
|
@ -578,7 +578,7 @@ a.homepageMenuText {color:#484848; font-size:16px; margin-left:20px;}
|
|||
.homepageNewsPortrait {width:40px; display:block; margin-top:7px;}
|
||||
.homepageNewsPublisher {width:80px; max-width:80px; margin-right:10px; font-size:12px; color:#15bccf; display:block; padding-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis; }
|
||||
.homepageNewsType {width:95px; font-size:12px; color:#888888; display:block;}
|
||||
.homepageNewsContent {width:395px; max-width:395px; margin-right:10px; font-size:12px; color:#4b4b4b; display:block; overflow:hidden; white-space: nowrap; text-overflow:ellipsis; }
|
||||
.homepageNewsContent {width:395px; max-width:395px; margin-right:10px; font-size:12px; color:#4b4b4b; display:block; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;height:49px; max-height:49px; }
|
||||
.homepageNewsTime {width:75px; font-size:12px; color:#888888; display:block; text-align:right;}
|
||||
a.homepageWhite {color:#ffffff;}
|
||||
a.homepageWhite:hover {color:#a1ebff}
|
||||
|
|
Loading…
Reference in New Issue