微信二级回复BUG修改

This commit is contained in:
yuanke 2016-09-08 14:10:58 +08:00
parent 1109eba460
commit be0158fbb0
2 changed files with 10 additions and 5 deletions

View File

@ -189,7 +189,7 @@ module Mobile
reply.content = params[:content]
reply.parent_id = params[:id]
reply.subject = "RE: #{topic.subject}"
if topic.children << reply
if message.children << reply
result = 2
update_id = topic.id
end

View File

@ -30,19 +30,24 @@ module Mobile
u.nil? ? "" : u.show_name
when :roles_id
u[:roles_id].nil? ? nil : u.roles_id
when :login
u.login
when :lastname
u.lastname
when :mail
u.mail
end
end
end
end
end
expose :id
#头像
expose :login
expose :lastname
user_expose :login
user_expose :lastname
#邮箱地址
expose :mail
user_expose :mail
expose :nickname
#真名
user_expose :img_url