Commit 4917bcbf authored by Shakarim Sapa's avatar Shakarim Sapa

- Проверяем триггеры

parent d33595ab
......@@ -256,7 +256,7 @@ class TriggerTrigger extends \common\components\ActiveRecordModel
$debug['trigger_id'] = $this->id;
$debug['template'] = $this->messageTemplate->name;
$debug['unique'] = (array_key_exists('unique', $params)) ? (($params['unique']===true) ? 'Да' : 'Нет') : 'Параметр не указан';
return TriggerSchedule::sendMessage($email, $this->message_template_id, $templateData, $this->id);
// return TriggerSchedule::sendMessage($email, $this->message_template_id, $templateData, $this->id);
}
foreach($debug as $i=>$dbg) {
echo '#'.($i+1).' Единожды: '.$dbg['unique'].'; ID: '.$dbg['trigger_od'].'; EMAIL:'.$dbg['email'].'; Шаблон: '.$dbg['template'].'<br>';
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment