Actions
Defect #36365
opencentos8 配置redmine后,添加钉钉的自定义webhook,不能推送项目的变化信息到钉钉群
Status:
New
Priority:
Normal
Assignee:
-
Category:
Hook requests
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Affected version:
Description
1、钉钉群已配置安全网段IP和安全设置,并将WEBHOOK添加到 webhook_listener.rb,然后重启了redmine
还是不能推送通知
webhook_listener Post的代码:
def post(webhooks, request_body)
Thread.start do
webhooks.each do |webhook|
begin
Faraday.post do |req|
req.url webhook.url
req.headers['Content-Type'] = 'application/json'
req.body ={
"msgtype"=>" text",
"text"=> {
"content"=> "#{request_body}"
}.to.json
}
end
rescue => e
Rails.logger.error e
end
end
end
end
end
end
No data to display
Actions