解决wechat引起的项目申请拒绝问题
This commit is contained in:
parent
928412e83d
commit
e0027c0e00
|
@ -104,6 +104,7 @@ class MembersController < ApplicationController
|
||||||
@applied_message = AppliedMessage.find(params[:applied_message_id])
|
@applied_message = AppliedMessage.find(params[:applied_message_id])
|
||||||
# @applied_message.update_attribute(:status, 3)
|
# @applied_message.update_attribute(:status, 3)
|
||||||
applied_project = @applied_message.applied
|
applied_project = @applied_message.applied
|
||||||
|
project = Project.find(@applied_message.project_id)
|
||||||
# 发送消息给被拒者,user_id对应的收到信息的用户
|
# 发送消息给被拒者,user_id对应的收到信息的用户
|
||||||
AppliedMessage.create(:user_id => @applied_message.applied_user_id, :applied_type => "AppliedProject", :applied_id => applied_project.id ,:status => 4,
|
AppliedMessage.create(:user_id => @applied_message.applied_user_id, :applied_type => "AppliedProject", :applied_id => applied_project.id ,:status => 4,
|
||||||
:viewed => false, :applied_user_id => @applied_message.user_id, :role => applied_project.role, :project_id => applied_project.project_id)
|
:viewed => false, :applied_user_id => @applied_message.user_id, :role => applied_project.role, :project_id => applied_project.project_id)
|
||||||
|
|
Loading…
Reference in New Issue