自己建的issue指向自己不发微信消息

This commit is contained in:
yuanke 2016-09-02 14:40:40 +08:00
parent a6bb19eb60
commit 11f3060ca5
1 changed files with 3 additions and 2 deletions

View File

@ -196,8 +196,9 @@ class IssuesController < ApplicationController
priority_id = params[:issue][:priority_id]
ps = ProjectsService.new
ps.send_wechat_project_issue_notice senduser,@issue.project,issue_id,issue_title,priority_id
if senduser.id != User.current.id
ps.send_wechat_project_issue_notice senduser,@issue.project,issue_id,issue_title,priority_id
end
call_hook(:controller_issues_new_after_save, { :params => params, :issue => @issue})
respond_to do |format|
format.html {