项目申请BUG修改
This commit is contained in:
parent
96bc405a19
commit
03551dfba9
|
@ -172,6 +172,10 @@ class ProjectsService
|
|||
|
||||
status = 0
|
||||
send_wechat_join_project_notice current_user,project,5,0
|
||||
|
||||
#将之前的申请都改为已拒绝
|
||||
applied_messages = AppliedMessage.where(:project_id => project.id, :status => true, :applied_user_id=>current_user.id,:applied_type => "AppliedProject")
|
||||
applied_messages.update_all(:status=>5)
|
||||
else
|
||||
if !AppliedProject.where(:project_id => project.id, :user_id => current_user.id).first.nil?
|
||||
status = 8
|
||||
|
|
Loading…
Reference in New Issue