项目申请BUG修改

This commit is contained in:
yuanke 2016-08-11 15:19:47 +08:00
parent 96bc405a19
commit 03551dfba9
1 changed files with 4 additions and 0 deletions

View File

@ -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