mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 11:44:10 +09:00
알림을 추가할 때 디비 관련 에러검사 로직을 각각의 처리공간에서 처리
This commit is contained in:
parent
556cc60657
commit
58932d22c9
1 changed files with 31 additions and 12 deletions
|
|
@ -203,6 +203,10 @@ class ncenterliteController extends ncenterlite
|
||||||
{
|
{
|
||||||
$obj->admin_comment_notify = true;
|
$obj->admin_comment_notify = true;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return $output;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -262,7 +266,11 @@ class ncenterliteController extends ncenterlite
|
||||||
$args->regdate = $regdate;
|
$args->regdate = $regdate;
|
||||||
$args->target_browser = $module_info->browser_title;
|
$args->target_browser = $module_info->browser_title;
|
||||||
$args->notify = $this->_getNotifyId($args);
|
$args->notify = $this->_getNotifyId($args);
|
||||||
$this->_insertNotify($args, $is_anonymous);
|
$output = $this->_insertNotify($args, $is_anonymous);
|
||||||
|
if(!$output->toBool())
|
||||||
|
{
|
||||||
|
return $output;
|
||||||
|
}
|
||||||
$notify_member_srls[] = abs($member_srl);
|
$notify_member_srls[] = abs($member_srl);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -306,7 +314,11 @@ class ncenterliteController extends ncenterlite
|
||||||
$args->regdate = $regdate;
|
$args->regdate = $regdate;
|
||||||
$args->target_browser = $module_info->browser_title;
|
$args->target_browser = $module_info->browser_title;
|
||||||
$args->notify = $this->_getNotifyId($args);
|
$args->notify = $this->_getNotifyId($args);
|
||||||
$this->_insertNotify($args, $is_anonymous);
|
$output = $this->_insertNotify($args, $is_anonymous);
|
||||||
|
if(!$output->toBool())
|
||||||
|
{
|
||||||
|
return $output;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -350,7 +362,11 @@ class ncenterliteController extends ncenterlite
|
||||||
$args->regdate = date('YmdHis');
|
$args->regdate = date('YmdHis');
|
||||||
$args->notify = $this->_getNotifyId($args);
|
$args->notify = $this->_getNotifyId($args);
|
||||||
$args->target_url = getNotEncodedFullUrl('', 'act', 'dispCommunicationMessages', 'message_srl', $obj->related_srl);
|
$args->target_url = getNotEncodedFullUrl('', 'act', 'dispCommunicationMessages', 'message_srl', $obj->related_srl);
|
||||||
$this->_insertNotify($args);
|
$output = $this->_insertNotify($args);
|
||||||
|
if(!$output->toBool())
|
||||||
|
{
|
||||||
|
return $output;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function triggerAfterVotedupdate(&$obj)
|
function triggerAfterVotedupdate(&$obj)
|
||||||
|
|
@ -382,6 +398,10 @@ class ncenterliteController extends ncenterlite
|
||||||
$args->notify = $this->_getNotifyId($args);
|
$args->notify = $this->_getNotifyId($args);
|
||||||
$args->target_url = getNotEncodedFullUrl('', 'document_srl', $obj->document_srl);
|
$args->target_url = getNotEncodedFullUrl('', 'document_srl', $obj->document_srl);
|
||||||
$output = $this->_insertNotify($args);
|
$output = $this->_insertNotify($args);
|
||||||
|
if(!$output->toBool())
|
||||||
|
{
|
||||||
|
return $output;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function triggerAfterCommentVotedCount($obj)
|
function triggerAfterCommentVotedCount($obj)
|
||||||
|
|
@ -667,6 +687,10 @@ class ncenterliteController extends ncenterlite
|
||||||
$args->regdate = date('YmdHis');
|
$args->regdate = date('YmdHis');
|
||||||
$args->notify = $this->_getNotifyId($args);
|
$args->notify = $this->_getNotifyId($args);
|
||||||
$output = $this->_insertNotify($args);
|
$output = $this->_insertNotify($args);
|
||||||
|
if(!$output->toBool())
|
||||||
|
{
|
||||||
|
return $output;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if($oModule->act == 'dispKinView' || $oModule->act == 'dispKinIndex')
|
else if($oModule->act == 'dispKinView' || $oModule->act == 'dispKinIndex')
|
||||||
|
|
@ -1075,19 +1099,14 @@ class ncenterliteController extends ncenterlite
|
||||||
}
|
}
|
||||||
|
|
||||||
$output = executeQuery('ncenterlite.insertNotify', $args);
|
$output = executeQuery('ncenterlite.insertNotify', $args);
|
||||||
if(!$output->toBool())
|
if($output->toBool())
|
||||||
{
|
|
||||||
return $output;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
ModuleHandler::triggerCall('ncenterlite._insertNotify', 'after', $args);
|
ModuleHandler::triggerCall('ncenterlite._insertNotify', 'after', $args);
|
||||||
|
$this->sendSmsMessage($args);
|
||||||
|
$this->sendMailMessage($args);
|
||||||
|
$this->removeFlagFile($args->member_srl);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->sendSmsMessage($args);
|
|
||||||
$this->sendMailMessage($args);
|
|
||||||
$this->removeFlagFile($args->member_srl);
|
|
||||||
|
|
||||||
return $output;
|
return $output;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue