* finish task #9790 for zentaobiz.

This commit is contained in:
wangyidong
2020-02-06 10:59:04 +08:00
parent 92f366b767
commit 6560eff7d2
+7
View File
@@ -84,6 +84,13 @@ class messageModel extends model
if(isset($messageSetting['webhook']))
{
$actions = $messageSetting['webhook']['setting'];
if($this->app->isFlow)
{
$rawModule = $this->app->rawModule;
$rawMethod = $this->app->rawMethod;
$actions[$rawModule][] = $rawMethod;
}
if(isset($actions[$objectType]) and in_array($actionType, $actions[$objectType]))
{
$this->loadModel('webhook')->send($objectType, $objectID, $actionType, $actionID, $actor);