mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-21 04:09:55 +09:00
#19626771 document.updateVotedCount 트리거의 callback에 전달될 데이터를 상세하게 제공
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@8193 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
91b9a5789d
commit
3c4d943ed7
1 changed files with 8 additions and 0 deletions
|
|
@ -745,15 +745,23 @@
|
|||
|
||||
$obj->member_srl = $oDocument->get('member_srl');
|
||||
$obj->module_srl = $oDocument->get('module_srl');
|
||||
$obj->document_srl = $oDocument->get('document_srl');
|
||||
$obj->update_target = ($point < 0) ? 'blamed_count' : 'voted_count';
|
||||
$obj->point = $point;
|
||||
$obj->before_point = ($point < 0) ? $oDocument->get('blamed_count') : $oDocument->get('voted_count');
|
||||
$obj->after_point = ($point < 0) ? $args->blamed_count : $args->voted_count;
|
||||
$output = ModuleHandler::triggerCall('document.updateVotedCount', 'after', $obj);
|
||||
if(!$output->toBool()) return $output;
|
||||
|
||||
// 결과 리턴
|
||||
if($point > 0)
|
||||
{
|
||||
return new Object(0, 'success_voted');
|
||||
}
|
||||
else
|
||||
{
|
||||
return new Object(0, 'success_blamed');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue