|
|
@ -172,6 +172,10 @@ class ProjectsService
|
|
|
|
|
|
|
|
|
|
|
|
status = 0
|
|
|
|
status = 0
|
|
|
|
send_wechat_join_project_notice current_user,project,5,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
|
|
|
|
else
|
|
|
|
if !AppliedProject.where(:project_id => project.id, :user_id => current_user.id).first.nil?
|
|
|
|
if !AppliedProject.where(:project_id => project.id, :user_id => current_user.id).first.nil?
|
|
|
|
status = 8
|
|
|
|
status = 8
|
|
|
|