平台加入项目发微信模版消息

This commit is contained in:
yuanke 2016-08-11 11:22:42 +08:00
parent ea926395c3
commit 14e70541db
1 changed files with 2 additions and 0 deletions

View File

@ -75,6 +75,8 @@ class AppliedProjectController < ApplicationController
@project.project_infos << project_info
@project.user_grades << user_grades unless user_grades.first.user_id.nil?
ps = ProjectsService.new
ps.send_wechat_join_project_notice User.current,@project,5,0
else
@flag = 4
role = params[:member] == "member_manager" ? 3 : (params[:member] == "member_developer" ? 4 :5)